結果
| 問題 |
No.2124 Guess the Permutation
|
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2022-11-18 21:22:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 167 bytes |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 82,164 KB |
| 実行使用メモリ | 83,604 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2024-09-20 01:47:50 |
| 合計ジャッジ時間 | 1,841 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 9 |
ソースコード
n = int(input())
ans = [0] * n
tmp = 0
for i in range(n-1):
print(f"? 1 {i + 1}")
g = int(input())
ans[i] = g - tmp
ans[n-1] = n*(n+1)//2 - sum(ans)
print("!",*ans)
shobonvip