結果
| 問題 | No.1010 折って重ねて |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-21 06:37:11 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 23 ms / 2,000 ms |
| + 715µs | |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 62 ms |
| コンパイル使用メモリ | 82,496 KB |
| 実行使用メモリ | 55,800 KB |
| 最終ジャッジ日時 | 2026-10-04 18:21:34 |
| 合計ジャッジ時間 | 3,336 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 43 |
ソースコード
x, y, h = map(int, input().split())
ans = 0
while 1000*x > h or 1000*y > h:
if 1000*x > h and 1000*y > h:
if x < y:
x /= 2
else:
y /= 2
elif 1000*x > h:
x /= 2
elif 1000*y > h:
y /= 2
h *= 2
ans += 1
print(ans)