結果
| 問題 |
No.2124 Guess the Permutation
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-11 15:34:01 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 196 bytes |
| コンパイル時間 | 264 ms |
| コンパイル使用メモリ | 82,620 KB |
| 実行使用メモリ | 95,000 KB |
| 平均クエリ数 | 373.60 |
| 最終ジャッジ日時 | 2024-08-11 15:34:04 |
| 合計ジャッジ時間 | 2,553 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 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(s)
print('!', *p)