結果

問題 No.2451 Redistribute Integers
ユーザー simansiman
提出日時 2023-09-04 08:52:00
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 94 bytes
コンパイル時間 468 ms
コンパイル使用メモリ 11,504 KB
実行使用メモリ 51,640 KB
最終ジャッジ日時 2023-09-04 08:52:10
合計ジャッジ時間 6,021 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,096 KB
testcase_01 AC 81 ms
15,004 KB
testcase_02 AC 78 ms
15,192 KB
testcase_03 AC 79 ms
15,260 KB
testcase_04 AC 294 ms
51,640 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 79 ms
15,260 KB
testcase_08 AC 286 ms
49,600 KB
testcase_09 AC 80 ms
15,060 KB
testcase_10 AC 79 ms
15,140 KB
testcase_11 AC 80 ms
15,260 KB
testcase_12 WA -
testcase_13 AC 282 ms
50,960 KB
testcase_14 AC 282 ms
51,488 KB
testcase_15 AC 173 ms
31,796 KB
testcase_16 AC 163 ms
29,800 KB
testcase_17 WA -
testcase_18 AC 281 ms
50,996 KB
testcase_19 WA -
testcase_20 AC 235 ms
40,860 KB
testcase_21 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
A = gets.split.map(&:to_i)

if A.sum % N == 0
  puts 'Yes'
else
  puts 'No'
end
0