結果
| 問題 |
No.1010 折って重ねて
|
| コンテスト | |
| ユーザー |
ryo_n
|
| 提出日時 | 2020-03-20 22:55:18 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 485 bytes |
| コンパイル時間 | 106 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 21,504 KB |
| 最終ジャッジ日時 | 2024-12-15 07:45:42 |
| 合計ジャッジ時間 | 8,779 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 WA * 13 TLE * 2 |
ソースコード
import sys
sys.setrecursionlimit(10 ** 8)
input = sys.stdin.readline
def main():
X, Y, H = [int(x) for x in input().split()]
X *= 1000
Y *= 1000
ans = 0
while 1:
if X < H > Y:
break
if X > H:
X //= 2
ans += 1
H *= 2
continue
if Y > H:
Y //= 2
ans += 1
H *= 2
continue
print(ans)
if __name__ == '__main__':
main()
ryo_n