結果

問題 No.1429 Simple Dowsing
ユーザー so4649so4649
提出日時 2021-03-14 14:08:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 92,028 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 10:00:51
合計ジャッジ時間 2,887 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
86,976 KB
testcase_01 AC 97 ms
87,164 KB
testcase_02 AC 97 ms
87,660 KB
testcase_03 AC 101 ms
91,788 KB
testcase_04 AC 100 ms
91,740 KB
testcase_05 AC 98 ms
87,532 KB
testcase_06 AC 98 ms
92,028 KB
testcase_07 AC 99 ms
91,872 KB
testcase_08 AC 99 ms
91,680 KB
testcase_09 AC 100 ms
91,784 KB
testcase_10 AC 95 ms
86,968 KB
testcase_11 AC 99 ms
91,604 KB
testcase_12 AC 101 ms
91,064 KB
testcase_13 AC 101 ms
91,972 KB
testcase_14 AC 94 ms
87,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("? 0 0")
d1 = int(input())
print("? 0 100")
d2 = int(input())

for i in range(101):
    for j in range(101):
        if i**2 + j**2 == d1 and i**2 + (j-100)**2 == d2:
            print("! "+str(i)+" "+str(j))
            exit()
0