結果
問題 | No.2357 Guess the Function |
ユーザー | navel_tos |
提出日時 | 2023-06-23 23:03:58 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 439 bytes |
コンパイル時間 | 1,049 ms |
コンパイル使用メモリ | 87,248 KB |
実行使用メモリ | 92,508 KB |
平均クエリ数 | 2.82 |
最終ジャッジ日時 | 2023-09-13 18:12:42 |
合計ジャッジ時間 | 2,302 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 104 ms
91,908 KB |
testcase_01 | WA | - |
testcase_02 | AC | 102 ms
91,708 KB |
testcase_03 | AC | 99 ms
91,948 KB |
testcase_04 | AC | 95 ms
91,248 KB |
testcase_05 | WA | - |
testcase_06 | AC | 101 ms
92,196 KB |
testcase_07 | AC | 101 ms
91,792 KB |
testcase_08 | WA | - |
testcase_09 | AC | 99 ms
92,472 KB |
testcase_10 | AC | 98 ms
91,788 KB |
ソースコード
print('? '+str(50)); N=int(input()) #A+50が余りNとなる組を抽出 X=set() for A in range(1,101): for B in range(A+1,101): if (A+50)%B==N: X.add((A,B)) #次の質問を決める for y in range(1,101): Y=set() for A,B in X: Y.add((A+y)%B) if len(Y)!=len(X): continue else: break print('? '+str(y)); M=int(input()) for A,B in X: if (A+y)%B==M: print('! '+str(A)+' '+str(B)); break exit()