結果

問題 No.932 解法破綻!高橋君
ユーザー mattyan0502mattyan0502
提出日時 2020-01-05 00:09:27
言語 Java21
(openjdk 21)
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 579 bytes
コンパイル時間 3,738 ms
コンパイル使用メモリ 71,948 KB
実行使用メモリ 64,920 KB
最終ジャッジ日時 2023-08-14 20:55:28
合計ジャッジ時間 5,954 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
56,172 KB
testcase_01 AC 112 ms
56,304 KB
testcase_02 AC 112 ms
55,976 KB
testcase_03 AC 113 ms
56,328 KB
testcase_04 AC 113 ms
56,024 KB
testcase_05 AC 113 ms
55,388 KB
testcase_06 AC 113 ms
55,692 KB
testcase_07 AC 112 ms
56,136 KB
testcase_08 AC 118 ms
56,192 KB
testcase_09 AC 121 ms
55,844 KB
testcase_10 AC 117 ms
55,528 KB
testcase_11 AC 122 ms
55,812 KB
testcase_12 AC 122 ms
55,816 KB
testcase_13 AC 119 ms
56,164 KB
testcase_14 AC 130 ms
56,140 KB
testcase_15 AC 114 ms
56,248 KB
testcase_16 AC 125 ms
56,168 KB
testcase_17 MLE -
testcase_18 MLE -
testcase_19 AC 263 ms
63,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        String S[] = str.split(",");
        int sum = 0;
        for(int i=0;i<S.length;i++)
        {
            if(S[i].equals("AC"))
            {
                sum++;
            }
        }
        if(S.length==sum)
        {
            System.out.println("Done!");
        }
        else
        {
            System.out.println("Failed...");
        }
    }
}
0