返回列表 發帖

APCS 實作題 10610 - 2 交錯字串

本帖最後由 李泳霖 於 2022-12-24 10:08 編輯

c462: apcs 交錯字串 (Alternating Strings)

1061028APCS實作題_2.pdf
  1. [code]import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;


  4. public class P1 {
  5.         BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  6.         int k;
  7.         String str;
  8.         int keep;
  9.         int count;
  10.         int max;
  11.         P1() throws IOException {
  12.                 k=Integer.parseInt(br.readLine());
  13.                 str=br.readLine();
  14.                 int start=tell(str.charAt(0));
  15.                 for (int i = 1; i < str.length(); i++) {


  16.                 }


  17.         }
  18.         int tell(char c)
  19.         {
  20.                 if (Character.isUpperCase(c)) {
  21.                         return 1;
  22.                 }else {
  23.                         return 0;
  24.                 }
  25.         }
  26.         public static void main(String[] args) throws IOException {
  27.                 new P1();
  28.         }

  29. }
複製代碼
[/code]
istak.teach2@gmail.com

此帖僅作者可見
Vincent

TOP

此帖僅作者可見

TOP

此帖僅作者可見

TOP

此帖僅作者可見

TOP

此帖僅作者可見

TOP

此帖僅作者可見
istak.teach2@gmail.com

TOP

返回列表