結果

問題 No.2153 何コーダーが何人?
ユーザー viral8viral8
提出日時 2022-12-09 21:32:59
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 3,366 ms
コンパイル使用メモリ 74,252 KB
実行使用メモリ 43,424 KB
最終ジャッジ日時 2024-04-22 20:55:17
合計ジャッジ時間 8,650 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 201 ms
42,528 KB
testcase_03 AC 213 ms
42,476 KB
testcase_04 AC 211 ms
42,508 KB
testcase_05 AC 211 ms
42,332 KB
testcase_06 AC 218 ms
43,260 KB
testcase_07 AC 211 ms
42,808 KB
testcase_08 AC 209 ms
42,048 KB
testcase_09 AC 216 ms
42,632 KB
testcase_10 AC 208 ms
42,356 KB
testcase_11 AC 224 ms
42,952 KB
testcase_12 AC 209 ms
42,288 KB
testcase_13 AC 213 ms
42,396 KB
testcase_14 AC 215 ms
42,172 KB
testcase_15 AC 197 ms
42,688 KB
testcase_16 AC 219 ms
43,044 KB
testcase_17 AC 209 ms
42,992 KB
testcase_18 AC 223 ms
42,936 KB
testcase_19 AC 141 ms
41,256 KB
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] count = new int[8];
		while(N-->0){
			sc.next();
			int C = sc.nextInt();
			count[C]++;
		}
		for(int ans:count)
			System.out.println(ans);
	}
}
0