結果
問題 | No.46 はじめのn歩 |
ユーザー | nikuzuki |
提出日時 | 2015-11-15 00:48:50 |
言語 | Ruby (3.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 117 bytes |
コンパイル時間 | 429 ms |
コンパイル使用メモリ | 11,252 KB |
実行使用メモリ | 19,372 KB |
最終ジャッジ日時 | 2023-10-11 17:47:53 |
合計ジャッジ時間 | 7,976 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 77 ms
15,116 KB |
testcase_01 | AC | 77 ms
15,248 KB |
testcase_02 | AC | 81 ms
15,208 KB |
testcase_03 | AC | 77 ms
15,096 KB |
testcase_04 | AC | 76 ms
15,092 KB |
testcase_05 | AC | 79 ms
15,008 KB |
testcase_06 | AC | 77 ms
15,212 KB |
testcase_07 | AC | 77 ms
15,060 KB |
testcase_08 | TLE | - |
testcase_09 | -- | - |
コンパイルメッセージ
Main.rb:9: warning: literal in condition Syntax OK
ソースコード
a, b = gets.split.map(&:to_i) count = 1 while 1 if b - a <= 0 break end b -= a count += 1 end puts count