結果

問題 No.406 鴨等間隔の法則
ユーザー LEDLED
提出日時 2019-02-01 14:30:30
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 92 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 23,552 KB
最終ジャッジ日時 2024-05-01 22:40:41
合計ジャッジ時間 5,479 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
15,360 KB
testcase_01 WA -
testcase_02 AC 85 ms
12,288 KB
testcase_03 AC 81 ms
12,160 KB
testcase_04 AC 132 ms
19,712 KB
testcase_05 AC 100 ms
14,592 KB
testcase_06 AC 103 ms
14,720 KB
testcase_07 AC 101 ms
14,976 KB
testcase_08 AC 129 ms
19,584 KB
testcase_09 AC 141 ms
20,096 KB
testcase_10 AC 107 ms
15,360 KB
testcase_11 AC 130 ms
18,560 KB
testcase_12 AC 109 ms
16,256 KB
testcase_13 AC 104 ms
15,872 KB
testcase_14 WA -
testcase_15 AC 85 ms
12,416 KB
testcase_16 AC 87 ms
12,672 KB
testcase_17 AC 88 ms
12,160 KB
testcase_18 AC 89 ms
12,544 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 91 ms
12,928 KB
testcase_22 WA -
testcase_23 AC 111 ms
16,512 KB
testcase_24 WA -
testcase_25 AC 143 ms
20,096 KB
testcase_26 WA -
testcase_27 AC 133 ms
20,352 KB
testcase_28 AC 129 ms
20,096 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 140 ms
19,712 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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