結果
問題 | No.2124 Guess the Permutation |
ユーザー | hiro1729 |
提出日時 | 2024-08-11 15:34:08 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 196 bytes |
コンパイル時間 | 477 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 86,360 KB |
平均クエリ数 | 374.60 |
最終ジャッジ日時 | 2024-08-11 15:34:11 |
合計ジャッジ時間 | 1,833 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 9 |
ソースコード
N = int(input()) p = [0] * N s = N * (N + 1) // 2 for i in range(N - 1): print('?', i + 1, N, flush = True) c = int(input()) p[i] = s - c s = c p[-1] = N * (N + 1) // 2 - sum(p) print('!', *p)