結果
問題 |
No.5 数字のブロック
|
ユーザー |
![]() |
提出日時 | 2017-11-04 01:06:22 |
言語 | Ruby (3.4.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 107 bytes |
コンパイル時間 | 215 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 24,448 KB |
最終ジャッジ日時 | 2024-11-23 15:44:24 |
合計ジャッジ時間 | 63,697 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 21 TLE * 10 |
コンパイルメッセージ
Main.rb:9: warning: `-' after local variable or literal is interpreted as binary operator Main.rb:9: warning: 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