結果
| 問題 |
No.2124 Guess the Permutation
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-11 15:34:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 196 bytes |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 82,592 KB |
| 実行使用メモリ | 88,764 KB |
| 平均クエリ数 | 374.60 |
| 最終ジャッジ日時 | 2024-08-11 15:34:10 |
| 合計ジャッジ時間 | 1,721 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)