結果

問題 No.932 解法破綻!高橋君
ユーザー poi_kyopropoi_kyopro
提出日時 2019-11-29 21:47:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 226 ms / 2,000 ms
コード長 816 bytes
コンパイル時間 2,196 ms
コンパイル使用メモリ 71,752 KB
実行使用メモリ 58,764 KB
最終ジャッジ日時 2023-08-13 05:09:52
合計ジャッジ時間 6,024 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,004 KB
testcase_01 AC 118 ms
55,608 KB
testcase_02 AC 117 ms
55,268 KB
testcase_03 AC 120 ms
55,920 KB
testcase_04 AC 119 ms
55,280 KB
testcase_05 AC 117 ms
55,752 KB
testcase_06 AC 120 ms
55,280 KB
testcase_07 AC 118 ms
55,908 KB
testcase_08 AC 119 ms
55,880 KB
testcase_09 AC 121 ms
55,760 KB
testcase_10 AC 121 ms
55,872 KB
testcase_11 AC 122 ms
55,836 KB
testcase_12 AC 126 ms
55,388 KB
testcase_13 AC 125 ms
55,628 KB
testcase_14 AC 131 ms
55,652 KB
testcase_15 AC 121 ms
55,712 KB
testcase_16 AC 130 ms
55,632 KB
testcase_17 AC 226 ms
58,608 KB
testcase_18 AC 213 ms
58,764 KB
testcase_19 AC 215 ms
58,616 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