結果

問題 No.932 解法破綻!高橋君
ユーザー tentententen
提出日時 2020-11-12 20:25:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 218 ms / 2,000 ms
コード長 373 bytes
コンパイル時間 1,965 ms
コンパイル使用メモリ 72,176 KB
実行使用メモリ 58,732 KB
最終ジャッジ日時 2023-09-30 01:49:43
合計ジャッジ時間 6,416 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
55,864 KB
testcase_01 AC 114 ms
55,568 KB
testcase_02 AC 113 ms
56,488 KB
testcase_03 AC 113 ms
56,108 KB
testcase_04 AC 114 ms
55,592 KB
testcase_05 AC 114 ms
55,688 KB
testcase_06 AC 119 ms
55,612 KB
testcase_07 AC 111 ms
55,364 KB
testcase_08 AC 114 ms
55,700 KB
testcase_09 AC 112 ms
56,216 KB
testcase_10 AC 113 ms
53,884 KB
testcase_11 AC 116 ms
55,724 KB
testcase_12 AC 118 ms
56,424 KB
testcase_13 AC 117 ms
56,672 KB
testcase_14 AC 124 ms
55,512 KB
testcase_15 AC 113 ms
56,184 KB
testcase_16 AC 123 ms
55,888 KB
testcase_17 AC 211 ms
58,544 KB
testcase_18 AC 207 ms
58,592 KB
testcase_19 AC 218 ms
58,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        for (char c : sc.next().toCharArray()) {
            if (c != 'A' && c != 'C' && c != ',') {
                System.out.println("Failed...");
                return;
            }
        }
        System.out.println("Done!");
    }
}
0