結果
| 問題 |
No.2124 Guess the Permutation
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-11 15:37:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 206 bytes |
| コンパイル時間 | 336 ms |
| コンパイル使用メモリ | 82,312 KB |
| 実行使用メモリ | 87,692 KB |
| 平均クエリ数 | 373.60 |
| 最終ジャッジ日時 | 2024-08-11 15:37:50 |
| 合計ジャッジ時間 | 2,265 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 9 |
ソースコード
N = int(input())
p = [0] * N
S = N * (N + 1) // 2
for i in range(1, N - 1):
print('?', i + 1, N, flush = True)
C = int(input())
p[i - 1] = S - C
S = C
p[N - 1] = N * (N + 1) // 2 - sum(p)
print('!', *p)