結果
| 問題 | No.2124 Guess the Permutation |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-05 07:47:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 220 bytes |
| コンパイル時間 | 640 ms |
| コンパイル使用メモリ | 82,148 KB |
| 実行使用メモリ | 76,272 KB |
| 平均クエリ数 | 2.00 |
| 最終ジャッジ日時 | 2025-03-05 07:47:36 |
| 合計ジャッジ時間 | 2,946 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 9 |
ソースコード
N = int(input())
P = [0]*(N+1)
s = (N*(N+1))//2
for i in range(N-1,1):
print("?",1,i)
s1 = int(input())
P[i+1] = s-s1
s = s1
print("?",2,3)
s1 = int(input())
P[2] = s1-P[3]
P[1] = s-P[2]
print("!",*P[1:])