結果

問題 No.1692 Expectations
ユーザー gmm_teagmm_tea
提出日時 2021-10-01 21:26:05
言語 Ruby
(3.3.0)
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 11,328 KB
実行使用メモリ 37,688 KB
最終ジャッジ日時 2023-09-26 16:23:17
合計ジャッジ時間 3,912 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,248 KB
testcase_01 AC 81 ms
15,052 KB
testcase_02 AC 79 ms
15,248 KB
testcase_03 AC 80 ms
15,076 KB
testcase_04 AC 82 ms
15,240 KB
testcase_05 AC 82 ms
15,024 KB
testcase_06 AC 80 ms
15,248 KB
testcase_07 AC 82 ms
15,056 KB
testcase_08 AC 82 ms
15,212 KB
testcase_09 AC 82 ms
15,136 KB
testcase_10 AC 156 ms
28,144 KB
testcase_11 AC 162 ms
28,724 KB
testcase_12 AC 80 ms
15,244 KB
testcase_13 AC 82 ms
15,140 KB
testcase_14 AC 89 ms
16,704 KB
testcase_15 AC 163 ms
31,396 KB
testcase_16 AC 88 ms
16,580 KB
testcase_17 AC 118 ms
23,588 KB
testcase_18 AC 97 ms
18,464 KB
testcase_19 AC 192 ms
34,648 KB
testcase_20 AC 161 ms
33,240 KB
testcase_21 AC 194 ms
37,688 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,m=gets.split.map(&:to_i)
a=gets.split.map(&:to_i)
if n==m&&a.uniq.size==1
  puts [1,1].join(" ")
else
  puts [a.uniq.size,0].join(" ")
end
0