結果

問題 No.4 おもりと天秤
ユーザー riokuma0810riokuma0810
提出日時 2015-08-18 23:24:55
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 134 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 11,512 KB
実行使用メモリ 15,372 KB
最終ジャッジ日時 2023-09-25 12:56:41
合計ジャッジ時間 3,204 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,156 KB
testcase_01 WA -
testcase_02 AC 82 ms
15,020 KB
testcase_03 AC 79 ms
15,096 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 82 ms
15,088 KB
testcase_10 WA -
testcase_11 AC 83 ms
15,260 KB
testcase_12 WA -
testcase_13 AC 82 ms
15,256 KB
testcase_14 WA -
testcase_15 AC 85 ms
15,020 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 82 ms
15,168 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.chomp.to_i
weight = gets.split.map(&:to_i)
i = weight.inject(:+)
if i % n == 0
  puts "possible"
else
  puts "impossible"
end
0