結果

問題 No.1586 Equal Array
ユーザー hPaProjecthPaProject
提出日時 2023-01-05 16:32:34
言語 Ruby
(3.3.0)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 78 bytes
コンパイル時間 1,047 ms
コンパイル使用メモリ 11,296 KB
実行使用メモリ 22,144 KB
最終ジャッジ日時 2023-08-19 13:50:04
合計ジャッジ時間 4,612 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,076 KB
testcase_01 AC 78 ms
15,048 KB
testcase_02 AC 79 ms
15,080 KB
testcase_03 AC 79 ms
15,076 KB
testcase_04 AC 119 ms
21,432 KB
testcase_05 AC 120 ms
21,492 KB
testcase_06 AC 124 ms
21,924 KB
testcase_07 AC 124 ms
21,984 KB
testcase_08 AC 124 ms
21,932 KB
testcase_09 AC 123 ms
21,980 KB
testcase_10 AC 123 ms
22,144 KB
testcase_11 AC 78 ms
15,084 KB
testcase_12 AC 77 ms
14,972 KB
testcase_13 AC 123 ms
22,076 KB
testcase_14 AC 123 ms
21,824 KB
testcase_15 AC 122 ms
22,028 KB
testcase_16 AC 124 ms
21,964 KB
testcase_17 AC 78 ms
15,040 KB
testcase_18 AC 121 ms
22,024 KB
testcase_19 AC 122 ms
22,144 KB
testcase_20 AC 77 ms
15,152 KB
testcase_21 AC 77 ms
14,964 KB
testcase_22 AC 76 ms
15,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
puts gets.split(" ").map{|i| i.to_i}.sum % n == 0 ? "Yes" : "No"
0