結果

問題 No.2124 Guess the Permutation
ユーザー lilictaka
提出日時 2022-12-02 16:06:40
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 188 bytes
コンパイル時間 326 ms
コンパイル使用メモリ 82,280 KB
実行使用メモリ 94,572 KB
平均クエリ数 373.60
最終ジャッジ日時 2024-10-09 17:53:11
合計ジャッジ時間 2,306 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = (N * (N+1))//2
ANS = ['!']
for l in range(2,N+1):
    tmp = ['?',l,N]
    print(*tmp)
    s = int(input())
    ANS.append(S-s)
    S-=ANS[-1]
ANS.append(S)
print(*ANS)
0