結果
問題 | No.2124 Guess the Permutation |
ユーザー | 👑 Kazun |
提出日時 | 2022-11-18 21:22:00 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 326 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 81,552 KB |
実行使用メモリ | 82,080 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2023-10-20 06:08:28 |
合計ジャッジ時間 | 1,870 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
ソースコード
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()