結果

問題 No.406 鴨等間隔の法則
ユーザー LEDLED
提出日時 2019-02-01 14:30:30
言語 Ruby
(3.2.2)
結果
WA  
実行時間 -
コード長 92 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 11,240 KB
実行使用メモリ 26,816 KB
最終ジャッジ日時 2023-08-14 10:11:35
合計ジャッジ時間 5,726 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
18,184 KB
testcase_01 WA -
testcase_02 AC 79 ms
15,288 KB
testcase_03 AC 78 ms
15,160 KB
testcase_04 AC 129 ms
22,472 KB
testcase_05 AC 98 ms
17,716 KB
testcase_06 AC 101 ms
18,000 KB
testcase_07 AC 99 ms
17,872 KB
testcase_08 AC 126 ms
22,376 KB
testcase_09 AC 138 ms
23,544 KB
testcase_10 AC 101 ms
18,088 KB
testcase_11 AC 120 ms
21,428 KB
testcase_12 AC 108 ms
19,096 KB
testcase_13 AC 106 ms
18,872 KB
testcase_14 WA -
testcase_15 AC 82 ms
15,284 KB
testcase_16 AC 83 ms
15,440 KB
testcase_17 AC 82 ms
15,540 KB
testcase_18 AC 82 ms
15,352 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 85 ms
15,780 KB
testcase_22 WA -
testcase_23 AC 110 ms
19,472 KB
testcase_24 WA -
testcase_25 AC 141 ms
23,484 KB
testcase_26 WA -
testcase_27 AC 131 ms
24,224 KB
testcase_28 AC 130 ms
23,356 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 139 ms
22,960 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