結果

問題 No.1586 Equal Array
ユーザー kona0001kona0001
提出日時 2021-07-08 22:24:04
言語 Ruby
(3.3.0)
結果
AC  
実行時間 118 ms / 1,000 ms
コード長 86 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 11,252 KB
実行使用メモリ 23,216 KB
最終ジャッジ日時 2023-09-14 05:02:24
合計ジャッジ時間 3,410 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,300 KB
testcase_01 AC 75 ms
15,296 KB
testcase_02 AC 76 ms
15,052 KB
testcase_03 AC 72 ms
15,084 KB
testcase_04 AC 111 ms
21,608 KB
testcase_05 AC 100 ms
21,600 KB
testcase_06 AC 109 ms
23,004 KB
testcase_07 AC 114 ms
22,916 KB
testcase_08 AC 111 ms
22,960 KB
testcase_09 AC 105 ms
22,976 KB
testcase_10 AC 106 ms
22,856 KB
testcase_11 AC 67 ms
15,108 KB
testcase_12 AC 68 ms
15,104 KB
testcase_13 AC 108 ms
22,968 KB
testcase_14 AC 104 ms
22,908 KB
testcase_15 AC 110 ms
22,944 KB
testcase_16 AC 118 ms
22,904 KB
testcase_17 AC 68 ms
15,248 KB
testcase_18 AC 110 ms
23,124 KB
testcase_19 AC 107 ms
23,216 KB
testcase_20 AC 67 ms
15,148 KB
testcase_21 AC 67 ms
15,300 KB
testcase_22 AC 73 ms
15,176 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
a = gets.chomp.split(" ").map(&:to_i)
puts a.sum % n == 0 ? "Yes" : "No"
0