結果
| 問題 | No.3519 A/B問題 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-02-16 13:36:37 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 564 bytes |
| 記録 | |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 85,204 KB |
| 実行使用メモリ | 99,104 KB |
| 平均クエリ数 | 692.23 |
| 最終ジャッジ日時 | 2026-05-01 21:02:23 |
| 合計ジャッジ時間 | 9,995 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 RE * 20 |
ソースコード
DIGIT = 100
ans = ""
is_zero = False
for i in range(DIGIT - 1, -1, -1):
if is_zero:
ans += "0"
continue
for j in range(9, -1, -1):
m = str(j + 1) + "0" * i
print("?", 1, m)
match input():
case "<":
continue
case "=":
is_zero = True
ans += j + 1
break
case ">":
ans += j + 1
break
else:
ans += "0"
ans = ans.strip("0")
print("!", ans if len(ans) > 0 else 0)