結果
| 問題 |
No.2124 Guess the Permutation
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-11-28 17:25:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 202 bytes |
| コンパイル時間 | 100 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 27,640 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2024-10-05 16:38:43 |
| 合計ジャッジ時間 | 1,554 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 9 |
ソースコード
N = int(input())
ans = []
prev = 0
r = 1
for l in range(1, N):
print('?', r, l)
S = int(input())
ans.append(S - prev)
prev = S
ans.append(sum(range(N + 1)) - sum(ans))
print('!', *ans)