結果
| 問題 | 
                            No.1429 Simple Dowsing
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-05-09 01:00:40 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 293 bytes | 
| コンパイル時間 | 319 ms | 
| コンパイル使用メモリ | 82,316 KB | 
| 実行使用メモリ | 75,724 KB | 
| 平均クエリ数 | 3.00 | 
| 最終ジャッジ日時 | 2024-11-25 14:21:32 | 
| 合計ジャッジ時間 | 2,562 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 9 WA * 6 | 
ソースコード
print("? 0 0")
d = int(input())
for a in range(101):
    for b in range(101):
        if a*a+b*b==d:
            print(f"? {a} {b}")
            d2 = int(input())
            if d2==0:
                print(f"! {a} {b}")
            else:
                print(f"! {b} {a}")
            exit()