結果
問題 | No.1010 折って重ねて |
ユーザー |
![]() |
提出日時 | 2023-01-18 22:59:06 |
言語 | D (dmd 2.109.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 2,216 ms |
コンパイル使用メモリ | 205,252 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 17:19:27 |
合計ジャッジ時間 | 7,234 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 42 TLE * 1 |
ソースコード
import std; enum real M = 1e3; void main() { real x, y, h; readf("%f %f %f\n", x, y, h); x *= M, y *= M; int res; void f(real u, real v, real w, int num = 0) { res = max(res, num); if (u > w) f(u/2.0, v, w*2.0, num+1); if (v > w) f(u, v/2.0, w*2.0, num+1); } f(x, y, h); res.writeln; }