結果

問題 No.938 賢人を探せ
ユーザー 👑 tatt61880tatt61880
提出日時 2019-12-07 03:37:36
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 360 bytes
コンパイル時間 2,647 ms
コンパイル使用メモリ 160,132 KB
実行使用メモリ 9,452 KB
最終ジャッジ日時 2023-10-14 15:47:25
合計ジャッジ時間 5,303 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
9,452 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 2 ms
4,356 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,352 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,352 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 30 ms
7,608 KB
testcase_09 AC 31 ms
7,732 KB
testcase_10 AC 2 ms
4,348 KB
testcase_11 AC 42 ms
8,304 KB
testcase_12 AC 31 ms
7,372 KB
testcase_13 AC 30 ms
7,352 KB
testcase_14 AC 30 ms
7,528 KB
testcase_15 AC 30 ms
7,600 KB
testcase_16 AC 32 ms
7,364 KB
testcase_17 AC 30 ms
7,580 KB
testcase_18 AC 30 ms
7,620 KB
testcase_19 AC 30 ms
7,484 KB
testcase_20 AC 31 ms
7,268 KB
testcase_21 AC 30 ms
7,344 KB
testcase_22 AC 49 ms
9,416 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