結果
| 問題 | No.1010 折って重ねて |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-21 06:37:11 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 85,044 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-05-26 21:17:34 |
| 合計ジャッジ時間 | 3,044 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)