結果
問題 |
No.2124 Guess the Permutation
|
ユーザー |
![]() |
提出日時 | 2022-11-18 21:29:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 27,480 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2024-09-20 01:54:45 |
合計ジャッジ時間 | 1,464 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | RE * 9 |
ソースコード
import sys input = sys.stdin.readline N=int(input()) SUM=(N+1)*N//2 ANS=[0]*N NOW=SUM for i in range(N-2): print(i+2,N,flush=True) x=int(input()) ANS[i]=NOW-x NOW-=ANS[i] print(N-2,N-1,flush=True) x=int(input()) ANS[-2]=x-ANS[-3] ANS[-1]=SUM-sum(ANS) print("!",*ANS,flush=True)