結果
問題 |
No.2124 Guess the Permutation
|
ユーザー |
![]() |
提出日時 | 2022-11-26 16:18:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 139 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 411 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 86,360 KB |
平均クエリ数 | 374.60 |
最終ジャッジ日時 | 2024-10-03 00:30:35 |
合計ジャッジ時間 | 2,564 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 |
ソースコード
N = int(input()) L = ["!"] S = (1+N)*(N)//2 print("?",2,N,flush=True) a = int(input()) L.append(S-a) R = L[-1] for i in range(N-2): print("?",1,2+i,flush=True) s = int(input()) L.append(s-R) R += L[-1] L.append(S-R) print(*L)