結果

問題 No.932 解法破綻!高橋君
ユーザー poi_kyopropoi_kyopro
提出日時 2019-11-29 21:47:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 227 ms / 2,000 ms
コード長 816 bytes
コンパイル時間 2,019 ms
コンパイル使用メモリ 75,152 KB
実行使用メモリ 44,720 KB
最終ジャッジ日時 2024-04-30 23:14:48
合計ジャッジ時間 5,690 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
40,272 KB
testcase_01 AC 127 ms
41,448 KB
testcase_02 AC 127 ms
41,564 KB
testcase_03 AC 127 ms
41,136 KB
testcase_04 AC 127 ms
41,216 KB
testcase_05 AC 127 ms
41,396 KB
testcase_06 AC 125 ms
41,028 KB
testcase_07 AC 125 ms
41,576 KB
testcase_08 AC 125 ms
41,384 KB
testcase_09 AC 125 ms
41,004 KB
testcase_10 AC 129 ms
41,368 KB
testcase_11 AC 130 ms
41,344 KB
testcase_12 AC 132 ms
41,416 KB
testcase_13 AC 130 ms
41,368 KB
testcase_14 AC 146 ms
41,828 KB
testcase_15 AC 128 ms
41,164 KB
testcase_16 AC 140 ms
41,156 KB
testcase_17 AC 227 ms
44,632 KB
testcase_18 AC 223 ms
44,504 KB
testcase_19 AC 217 ms
44,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        
        //int a = stdIn.nextInt();
        //int b = stdIn.nextInt();
        //int num[] = new int[3];
        String s = stdIn.next();
        char c[] = s.toCharArray();
        //int sum = 0;
        boolean flag = true;
        
        for(int i = 0; i < s.length(); i++){
            if(c[i] == 'A' || c[i] == 'C' || c[i] == ','){
                
            }else{
                flag = false;
                break;
            }
        }
        
        if(flag){
            System.out.println("Done!");
        }else{
            System.out.println("Failed...");
        }
        
        //System.out.println();
        //System.out.print();
    }
}
0