結果
| 問題 | No.2124 Guess the Permutation |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-11-29 13:13:19 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 223 bytes |
| 記録 | |
| コンパイル時間 | 190 ms |
| コンパイル使用メモリ | 84,960 KB |
| 実行使用メモリ | 98,740 KB |
| 平均クエリ数 | 373.60 |
| 最終ジャッジ日時 | 2026-04-23 13:58:01 |
| 合計ジャッジ時間 | 2,823 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 9 |
ソースコード
N = int(input())
now = N * (N + 1) / 2
ans = []
for i in range(N - 1,0,-1):
l = 1
r = i
print("?",l,r)
S = int(input())
t = now - S
ans.append(t)
now -= t
ans.append(now)
print(*reversed(ans))