結果
| 問題 | 
                            No.2124 Guess the Permutation
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ニックネーム
                         | 
                    
| 提出日時 | 2022-11-18 21:30:43 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 90 ms / 2,000 ms | 
| コード長 | 196 bytes | 
| コンパイル時間 | 76 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 27,736 KB | 
| 平均クエリ数 | 374.60 | 
| 最終ジャッジ日時 | 2024-09-20 01:55:17 | 
| 合計ジャッジ時間 | 1,523 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 9 | 
ソースコード
n = int(input())
print("?", 2, n)
s = n*(n+1)//2-int(input())
p = [s]
for i in range(n-2):
    print("?", 1, i+2)
    p.append(int(input())-s)
    s += p[i+1]
p.append(n*(n+1)//2-s)
print("!", *p)
            
            
            
        
            
ニックネーム