結果
問題 |
No.2124 Guess the Permutation
|
ユーザー |
![]() |
提出日時 | 2022-11-18 23:33:23 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 479 bytes |
コンパイル時間 | 280 ms |
コンパイル使用メモリ | 82,412 KB |
実行使用メモリ | 83,704 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2024-09-20 03:59:12 |
合計ジャッジ時間 | 1,860 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | RE * 9 |
ソースコード
def oi(): return int(input()) def os(): return input().rstrip() def mi(): return list(map(int, input().split())) # import sys # input = sys.stdin.readline # import sys # sys.setrecursionlimit(10**8) # import pypyjit # pypyjit.set_param('max_unroll_recursion=-1') input_count = 0 N = oi() out = ["!"] sets = set(range(1,N+1)) for i in range(N-1): print(f"? {i+1} {i+1}") temp = oi() out.append(str(temp)) sets.remove(temp) out.append(list(sets)[0]) print(" ".join(out))