結果

問題 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 ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 236 ms
コンパイル使用メモリ 95,724 KB
実行使用メモリ 82,944 KB
平均クエリ数 2.82
最終ジャッジ日時 2026-08-02 22:45:06
合計ジャッジ時間 2,206 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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