結果

問題 No.406 鴨等間隔の法則
ユーザー LEDLED
提出日時 2019-02-01 14:32:20
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 97 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 11,260 KB
実行使用メモリ 26,580 KB
最終ジャッジ日時 2023-08-14 10:12:34
合計ジャッジ時間 4,976 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
18,196 KB
testcase_01 AC 80 ms
15,052 KB
testcase_02 AC 78 ms
15,092 KB
testcase_03 AC 78 ms
15,184 KB
testcase_04 AC 131 ms
22,576 KB
testcase_05 AC 100 ms
17,620 KB
testcase_06 AC 100 ms
17,904 KB
testcase_07 AC 100 ms
17,976 KB
testcase_08 AC 128 ms
22,532 KB
testcase_09 AC 140 ms
23,488 KB
testcase_10 AC 102 ms
18,240 KB
testcase_11 AC 120 ms
21,400 KB
testcase_12 AC 109 ms
19,036 KB
testcase_13 AC 105 ms
18,992 KB
testcase_14 AC 131 ms
24,344 KB
testcase_15 AC 84 ms
15,548 KB
testcase_16 AC 82 ms
15,552 KB
testcase_17 AC 81 ms
15,452 KB
testcase_18 AC 83 ms
15,556 KB
testcase_19 AC 85 ms
15,800 KB
testcase_20 AC 87 ms
16,140 KB
testcase_21 AC 85 ms
15,748 KB
testcase_22 AC 90 ms
17,192 KB
testcase_23 AC 111 ms
19,564 KB
testcase_24 AC 126 ms
23,364 KB
testcase_25 AC 142 ms
23,588 KB
testcase_26 WA -
testcase_27 AC 134 ms
24,328 KB
testcase_28 AC 129 ms
23,608 KB
testcase_29 WA -
testcase_30 AC 146 ms
26,580 KB
testcase_31 AC 138 ms
22,840 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
x=gets.split.map(&:to_i).sort
puts x.inject(:+)%n==0 && x.uniq.size==n ? "YES" : "NO"
0