結果

問題 No.938 賢人を探せ
ユーザー 👑 tatt61880tatt61880
提出日時 2020-03-24 06:37:13
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 360 bytes
コンパイル時間 2,196 ms
コンパイル使用メモリ 160,612 KB
実行使用メモリ 9,620 KB
最終ジャッジ日時 2023-10-14 15:59:11
合計ジャッジ時間 3,823 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
9,620 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 1 ms
4,352 KB
testcase_04 AC 2 ms
4,352 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 29 ms
7,612 KB
testcase_09 AC 30 ms
7,580 KB
testcase_10 AC 1 ms
4,352 KB
testcase_11 AC 39 ms
8,052 KB
testcase_12 AC 29 ms
7,588 KB
testcase_13 AC 27 ms
7,708 KB
testcase_14 AC 27 ms
7,540 KB
testcase_15 AC 26 ms
7,588 KB
testcase_16 AC 26 ms
7,352 KB
testcase_17 AC 27 ms
7,496 KB
testcase_18 AC 28 ms
7,408 KB
testcase_19 AC 27 ms
7,392 KB
testcase_20 AC 28 ms
7,412 KB
testcase_21 AC 27 ms
7,292 KB
testcase_22 AC 52 ms
9,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var N: int :: cui@input().toInt(&)
	var B: [][]char :: #[N][]char
	var dic: dict<[]char, int> :: #dict<[]char, int>
	for i(0, N - 1)
		var ss: [][]char :: cui@input().split(" ")
		do B[i] :: ss[1]
		do dic.add(ss[0], 0)
	end for
	for i(0, N - 1)
		if(!dic.exist(B[i]))
			do cui@print(B[i] ~ "\n")
			do dic.add(B[i], 0)
		end if
	end for
end func
0