結果
問題 |
No.932 解法破綻!高橋君
|
ユーザー |
![]() |
提出日時 | 2020-01-05 00:09:27 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 278 ms / 2,000 ms |
コード長 | 579 bytes |
コンパイル時間 | 2,071 ms |
コンパイル使用メモリ | 74,352 KB |
実行使用メモリ | 51,008 KB |
最終ジャッジ日時 | 2024-11-22 21:50:27 |
合計ジャッジ時間 | 5,893 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
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..."); } } }