結果
| 問題 | No.2124 Guess the Permutation |
| コンテスト | |
| ユーザー |
Kazun
|
| 提出日時 | 2022-11-18 21:22:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 326 bytes |
| 記録 | |
| コンパイル時間 | 166 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 81,752 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2024-09-20 01:47:11 |
| 合計ジャッジ時間 | 1,784 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 9 |
ソースコード
def question(l,r):
print("?",l,r,flush=True)
return int(input())
def answer(P):
print("!",*P[1:])
exit()
def solve():
N=int(input())
P=[0]*(N+1)
for i in range(1,N):
P[i]=question(i,i)
P[N]=N*(N+1)//2-sum(P)
answer(P)
#==================================================
solve()
Kazun