結果
| 問題 |
No.1010 折って重ねて
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-20 21:39:24 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 478 bytes |
| コンパイル時間 | 86 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 11,904 KB |
| 最終ジャッジ日時 | 2024-12-15 04:54:26 |
| 合計ジャッジ時間 | 2,982 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)