結果
問題 | No.740 幻の木 |
ユーザー |
|
提出日時 | 2018-10-09 16:54:05 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 282 ms / 2,000 ms |
コード長 | 203 bytes |
コンパイル時間 | 299 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-12 16:34:59 |
合計ジャッジ時間 | 1,984 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
コンパイルメッセージ
Syntax OK
ソースコード
n, m, p, q = gets.split.map(&:to_i)(1..Float::INFINITY).each do |i|x = (i - 1) % 12 + 1if p <= x && x <= p + q - 1n -= 2 * melsen -= mendif n <= 0puts ibreakendend