結果

問題 No.2357 Guess the Function
コンテスト
ユーザー Alex Wice
提出日時 2023-06-23 21:52:57
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 309 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 340 ms
コンパイル使用メモリ 85,324 KB
実行使用メモリ 78,236 KB
平均クエリ数 2.82
最終ジャッジ日時 2026-03-21 17:09:26
合計ジャッジ時間 1,849 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 1 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys

print("? 99")
sys.stdout.flush()
A99 = int(input())
print("? 100")
sys.stdout.flush()
A100 = int(input())

for A in range(100):
    for B in range(A + 1, 100):
        if (A + 99) % B == A99 and (A + 100) % B == A100:
            print("!", A, B)
            sys.stdout.flush()
            exit()
0