結果

問題 No.3093 Please GCD
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2022-04-01 22:37:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 256 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 82,468 KB
実行使用メモリ 93,460 KB
平均クエリ数 8099.53
最終ジャッジ日時 2024-04-30 14:53:24
合計ジャッジ時間 16,977 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
69,008 KB
testcase_01 AC 66 ms
69,664 KB
testcase_02 AC 114 ms
78,836 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 475 ms
92,376 KB
testcase_10 AC 60 ms
69,064 KB
testcase_11 AC 176 ms
83,716 KB
testcase_12 WA -
testcase_13 AC 461 ms
92,844 KB
testcase_14 WA -
testcase_15 AC 113 ms
77,188 KB
testcase_16 WA -
testcase_17 AC 475 ms
92,476 KB
testcase_18 AC 458 ms
93,460 KB
testcase_19 AC 454 ms
92,892 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 454 ms
92,600 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from sys import stdin

N = int(stdin.readline())

ans = -1

for loop in range(1,N+1):

    print ("? " + str(loop) , flush=True )

    cat = int(stdin.readline())
    ans = max( ans , cat )

    assert loop <= 600 or cat == -1

print ("!",ans)
0