結果
| 問題 | No.1010 折って重ねて |
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-03-20 23:44:49 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 368 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-04 04:58:56 |
| 合計ジャッジ時間 | 3,139 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 WA * 13 |
ソースコード
#!/usr/bin/ python3.8
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
x, y, h = map(int, read().split())
x *= 10 ** 3
y *= 10 ** 3
answer = 0
while True:
if x > h:
h *= 4
y *= 2
elif y > h:
h *= 4
x *= 2
else:
break
answer += 1
print(answer)
maspy