結果
| 問題 | No.3519 A/B問題 |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-05-01 21:47:35 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 485 bytes |
| 記録 | |
| コンパイル時間 | 182 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 90,272 KB |
| 平均クエリ数 | 759.47 |
| 最終ジャッジ日時 | 2026-05-01 21:47:46 |
| 合計ジャッジ時間 | 7,368 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 19 |
ソースコード
def question(n, m):
print("?", n, m)
res = input()
if res == ">":
return 1
elif res == "=":
return 0
else:
return -1
def answer(n):
print("!", n)
if question(1, str(1)+"0"*100) >= 0:
answer(str(1)+"0"*100)
exit()
ans = []
for i in reversed(range(100)):
for j in reversed(range(1, 10)):
res = question(1, str(j)+"0"*i)
if 0 <= res:
ans.append(j)
break
answer("".join(map(str, ans)))
detteiuu