結果

問題 No.2124 Guess the Permutation
ユーザー shobonvipshobonvip
提出日時 2022-11-18 21:23:23
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 179 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 82,324 KB
実行使用メモリ 83,032 KB
平均クエリ数 1.00
最終ジャッジ日時 2024-09-20 01:48:37
合計ジャッジ時間 1,734 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = [0] * n
tmp = 0
for i in range(n-1):
	print(f"? 1 {i + 1}", flush=True)
	g = int(input())
	ans[i] = g - tmp
ans[n-1] = n*(n+1)//2 - sum(ans)
print("!",*ans)
0