結果

問題 No.2124 Guess the Permutation
ユーザー lilictakalilictaka
提出日時 2022-12-02 16:00:40
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 172 bytes
コンパイル時間 370 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 94,680 KB
平均クエリ数 373.60
最終ジャッジ日時 2024-04-17 23:59:02
合計ジャッジ時間 2,817 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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