結果
問題 | No.2124 Guess the Permutation |
ユーザー |
![]() |
提出日時 | 2022-12-02 16:12:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 128 ms / 2,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 307 ms |
コンパイル使用メモリ | 82,832 KB |
実行使用メモリ | 87,964 KB |
平均クエリ数 | 374.60 |
最終ジャッジ日時 | 2024-10-09 17:57:38 |
合計ジャッジ時間 | 2,140 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 |
ソースコード
N = int(input()) S = (N * (N+1))//2 ANS = ['!'] for l in range(2,N): tmp = ['?',l,N] print(*tmp) s = int(input()) ANS.append(S-s) S-=ANS[-1] tmp = ['?',1,N-1] print(*tmp) s = int(input()) last = ((N * (N+1))//2 -s) ANS.append(S-last) ANS.append(last) print(*ANS)