結果
問題 |
No.2124 Guess the Permutation
|
ユーザー |
|
提出日時 | 2025-05-18 22:10:39 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 284 bytes |
コンパイル時間 | 478 ms |
コンパイル使用メモリ | 82,104 KB |
実行使用メモリ | 84,604 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2025-05-18 22:10:42 |
合計ジャッジ時間 | 2,699 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | RE * 9 |
ソースコード
n=int(input()) A=[] for i in range(n-2): print(i+1,i+2,flush=True) A.append(int(input())) if n&1: print(n-1,n,flush=True) A.append(int(input())) t=sum([A[i] for i in range(0,n,2)]) u=n*(n+1)//2-t ans=[u] for i in range(n-1)[::-1]: ans.append(A[i]-ans[-1]) print(*ans[::-1])