結果
| 問題 |
No.2124 Guess the Permutation
|
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2022-11-24 17:56:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 209 bytes |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 82,228 KB |
| 実行使用メモリ | 83,272 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2024-10-01 07:47:22 |
| 合計ジャッジ時間 | 2,028 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 9 |
ソースコード
import sys
input=lambda:sys.stdin.readline().rstrip()
N=int(input())
A=[0 for i in range(N)]
for i in range(1,N):
print('?',i+1,i+1,flush=True)
input()
A[i]=int(input())
A[0]=N*(N+1)//2-sum(A)
print('!',*A)
ytft