結果
| 問題 | No.1010 折って重ねて |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-20 21:39:24 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 118 ms / 2,000 ms |
| コード長 | 478 bytes |
| 記録 | |
| コンパイル時間 | 323 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,708 KB |
| 最終ジャッジ日時 | 2026-05-25 18:21:15 |
| 合計ジャッジ時間 | 7,035 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 43 |
ソースコード
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import array
from bisect import *
from collections import *
import fractions
import heapq
from itertools import *
import math
import random
import re
import string
import sys
x, y, h = map(int, input().split())
x *= 1000
y *= 1000
ans = 0
while x > h or y > h:
x, y = min(x, y), max(x, y)
ans += 1
if x > h:
y *= 2
h *= 4
elif y > h:
x *= 2
h *= 4
# print(x, y, h)
print(ans)