結果
| 問題 | No.3519 A/B問題 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-02-16 13:00:39 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 573 bytes |
| 記録 | |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 84,736 KB |
| 実行使用メモリ | 73,032 KB |
| 平均クエリ数 | 13.77 |
| 最終ジャッジ日時 | 2026-05-01 21:01:48 |
| 合計ジャッジ時間 | 6,092 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 19 |
ソースコード
DIGIT = 100
ans = 0
is_zero = False
for i in range(DIGIT, -1, -1):
m = 10**i
if is_zero:
ans = 10 * ans
continue
for j in range(10):
n = j + 1
print("?", n, m)
match input():
case "<":
continue
case "=":
ans = 10 * ans + n
is_zero = True
break
case ">":
ans = 10 * ans + j
break
else:
is_zero = True
ans = 10 * ans
continue
print("!", ans)