結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
mergerintarou
|
| 提出日時 | 2017-11-04 01:04:05 |
| 言語 | Ruby (4.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 105 bytes |
| 記録 | |
| コンパイル時間 | 176 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 20,992 KB |
| 最終ジャッジ日時 | 2026-05-17 08:48:50 |
| 合計ジャッジ時間 | 9,443 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 18 TLE * 1 -- * 13 |
コンパイルメッセージ
Main.rb:9: warning: '-' after local variable or literal is interpreted as binary operator even though it seems like unary operator Main.rb:2: warning: assigned but unused variable - b Syntax OK
ソースコード
a = gets.to_i b = gets c = gets.split.sort n = 0 while a >0 do a -= c[n].to_i n += 1 end puts n -1
mergerintarou