結果
| 問題 |
No.4 おもりと天秤
|
| コンテスト | |
| ユーザー |
riokuma0810
|
| 提出日時 | 2015-08-18 23:24:55 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 134 bytes |
| コンパイル時間 | 39 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-07-18 10:16:28 |
| 合計ジャッジ時間 | 2,682 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 15 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.chomp.to_i weight = gets.split.map(&:to_i) i = weight.inject(:+) if i % n == 0 puts "possible" else puts "impossible" end
riokuma0810