結果

問題 No.938 賢人を探せ
ユーザー 👑 tatt61880tatt61880
提出日時 2020-04-25 16:02:25
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 350 bytes
コンパイル時間 2,012 ms
コンパイル使用メモリ 153,176 KB
実行使用メモリ 9,528 KB
最終ジャッジ日時 2023-10-14 16:34:36
合計ジャッジ時間 3,374 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
9,528 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,352 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 1 ms
4,352 KB
testcase_06 AC 2 ms
4,352 KB
testcase_07 AC 1 ms
4,348 KB
testcase_08 AC 27 ms
7,456 KB
testcase_09 AC 26 ms
7,868 KB
testcase_10 AC 1 ms
4,348 KB
testcase_11 AC 36 ms
8,104 KB
testcase_12 AC 26 ms
7,332 KB
testcase_13 AC 25 ms
7,392 KB
testcase_14 AC 26 ms
7,484 KB
testcase_15 AC 27 ms
7,484 KB
testcase_16 AC 26 ms
7,596 KB
testcase_17 AC 26 ms
7,440 KB
testcase_18 AC 26 ms
7,372 KB
testcase_19 AC 26 ms
7,512 KB
testcase_20 AC 26 ms
7,584 KB
testcase_21 AC 27 ms
7,548 KB
testcase_22 AC 40 ms
9,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var n: int :: cui@inputInt()

	var b: [][]char :: #[n][]char
	var dic: dict<[]char, int> :: #dict<[]char, int>
	for i(0, n - 1)
		var a: []char :: cui@inputStr()
		do b[i] :: cui@inputStr()
		do dic.add(a, 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