結果

問題 No.2451 Redistribute Integers
ユーザー simansiman
提出日時 2023-09-04 08:59:18
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 109 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 11,272 KB
実行使用メモリ 51,760 KB
最終ジャッジ日時 2023-09-04 08:59:26
合計ジャッジ時間 5,499 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,216 KB
testcase_01 AC 80 ms
15,196 KB
testcase_02 AC 80 ms
15,228 KB
testcase_03 AC 81 ms
15,220 KB
testcase_04 AC 301 ms
51,760 KB
testcase_05 AC 80 ms
15,204 KB
testcase_06 WA -
testcase_07 AC 81 ms
15,048 KB
testcase_08 AC 293 ms
49,520 KB
testcase_09 AC 80 ms
15,256 KB
testcase_10 AC 79 ms
15,240 KB
testcase_11 AC 80 ms
15,052 KB
testcase_12 WA -
testcase_13 AC 286 ms
51,020 KB
testcase_14 AC 289 ms
51,508 KB
testcase_15 WA -
testcase_16 AC 165 ms
29,640 KB
testcase_17 WA -
testcase_18 AC 291 ms
50,896 KB
testcase_19 WA -
testcase_20 AC 232 ms
40,972 KB
testcase_21 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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

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