結果

問題 No.1692 Expectations
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-07-05 08:14:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 203 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 11,340 KB
実行使用メモリ 37,412 KB
最終ジャッジ日時 2023-09-26 07:25:58
合計ジャッジ時間 5,693 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,032 KB
testcase_01 AC 77 ms
15,032 KB
testcase_02 AC 77 ms
15,084 KB
testcase_03 AC 78 ms
15,132 KB
testcase_04 AC 80 ms
15,128 KB
testcase_05 AC 80 ms
15,280 KB
testcase_06 AC 81 ms
15,184 KB
testcase_07 AC 81 ms
15,084 KB
testcase_08 AC 80 ms
15,056 KB
testcase_09 AC 81 ms
15,072 KB
testcase_10 AC 166 ms
26,184 KB
testcase_11 AC 166 ms
26,656 KB
testcase_12 AC 81 ms
15,056 KB
testcase_13 AC 79 ms
15,072 KB
testcase_14 AC 91 ms
16,628 KB
testcase_15 AC 186 ms
30,532 KB
testcase_16 AC 92 ms
17,132 KB
testcase_17 AC 131 ms
25,196 KB
testcase_18 AC 103 ms
18,052 KB
testcase_19 AC 201 ms
32,700 KB
testcase_20 AC 185 ms
35,564 KB
testcase_21 AC 203 ms
37,412 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,m=gets.split(" ").map{|e| e.to_i}
xs=gets.split(" ").map{|e| e.to_i}
hs={}
xs.each{|x|
	hs[x]=0
}
if hs.size==1 && n==m then
	puts "1 1"
else
	puts [hs.size,0].join(" ")
end
0