結果

問題 No.1692 Expectations
ユーザー 👑 tatt61880tatt61880
提出日時 2021-10-05 01:34:38
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 218 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 3,589 ms
コンパイル使用メモリ 153,000 KB
実行使用メモリ 14,376 KB
最終ジャッジ日時 2023-09-30 07:55:36
合計ジャッジ時間 4,305 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 3 ms
4,376 KB
testcase_04 AC 3 ms
4,376 KB
testcase_05 AC 3 ms
4,380 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 75 ms
5,136 KB
testcase_11 AC 76 ms
5,032 KB
testcase_12 AC 2 ms
4,380 KB
testcase_13 AC 2 ms
4,384 KB
testcase_14 AC 16 ms
4,780 KB
testcase_15 AC 182 ms
10,228 KB
testcase_16 AC 16 ms
4,640 KB
testcase_17 AC 85 ms
7,492 KB
testcase_18 AC 32 ms
5,472 KB
testcase_19 AC 218 ms
11,260 KB
testcase_20 AC 128 ms
13,032 KB
testcase_21 AC 148 ms
14,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var n: int :: cui@inputInt()
	var m: int :: cui@inputInt()
	var d: dict<int, bool> :: #dict<int, bool>
	var a: []int :: #[n]int
	for i(0, n - 1)
		do a[i] :: cui@inputInt()
		do d.add(a[i], true)
	end for
	
	var max: int :: ^d
	var min: int :: m = n & ^d = 1 ?(1, 0)
	do cui@print("\{max} \{min}\n")
end func
0