結果
問題 | No.2124 Guess the Permutation |
ユーザー |
![]() |
提出日時 | 2022-11-18 21:26:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 129 ms / 2,000 ms |
コード長 | 244 bytes |
コンパイル時間 | 132 ms |
コンパイル使用メモリ | 81,896 KB |
実行使用メモリ | 85,720 KB |
平均クエリ数 | 374.60 |
最終ジャッジ日時 | 2024-09-20 01:52:09 |
合計ジャッジ時間 | 1,740 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 |
ソースコード
N = int(input())wa = N * (N+1) // 2c = [0] * (N+1)c[N] = wafor r in range(2,N):print("?",1,r)c[r] = int(input())print("?",2,N)s = int(input())c[1] = wa - sans = []for i in range(N):ans.append(c[i+1]-c[i])print("!",*ans)