結果
問題 |
No.8100 始業式
|
ユーザー |
![]() |
提出日時 | 2025-08-28 13:18:34 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 358 bytes |
コンパイル時間 | 2,321 ms |
コンパイル使用メモリ | 75,692 KB |
実行使用メモリ | 49,400 KB |
最終ジャッジ日時 | 2025-08-28 13:18:39 |
合計ジャッジ時間 | 4,090 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 1 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int t = scan.nextInt(); for(int i = 0 ; i < t ; i++){ int n = scan.nextInt(); int count = 0; for(int j = 0 ; j < n ; j++){ if(scan.nextInt() == 1){ count++; } } System.out.println(count); } } }