結果
問題 | No.2577 Simple Permutation Guess |
ユーザー | rlangevin |
提出日時 | 2023-12-05 00:19:41 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 692 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 95,304 KB |
平均クエリ数 | 279.53 |
最終ジャッジ日時 | 2024-09-26 23:31:06 |
合計ジャッジ時間 | 20,983 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 62 ms
68,832 KB |
testcase_01 | AC | 269 ms
93,024 KB |
testcase_02 | AC | 130 ms
92,256 KB |
testcase_03 | AC | 62 ms
69,344 KB |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | AC | 306 ms
93,024 KB |
testcase_11 | AC | 61 ms
69,136 KB |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | AC | 63 ms
68,704 KB |
testcase_16 | AC | 58 ms
68,448 KB |
testcase_17 | AC | 58 ms
68,704 KB |
testcase_18 | AC | 60 ms
68,448 KB |
testcase_19 | AC | 60 ms
68,704 KB |
testcase_20 | AC | 58 ms
68,576 KB |
testcase_21 | AC | 58 ms
68,192 KB |
testcase_22 | AC | 60 ms
68,688 KB |
testcase_23 | RE | - |
testcase_24 | AC | 61 ms
68,056 KB |
testcase_25 | AC | 61 ms
68,952 KB |
testcase_26 | AC | 61 ms
68,184 KB |
testcase_27 | RE | - |
testcase_28 | RE | - |
testcase_29 | AC | 58 ms
68,056 KB |
testcase_30 | RE | - |
testcase_31 | AC | 60 ms
68,064 KB |
testcase_32 | RE | - |
testcase_33 | RE | - |
testcase_34 | AC | 60 ms
68,704 KB |
testcase_35 | RE | - |
testcase_36 | AC | 60 ms
68,192 KB |
testcase_37 | AC | 60 ms
68,320 KB |
testcase_38 | AC | 59 ms
68,184 KB |
testcase_39 | AC | 59 ms
68,568 KB |
testcase_40 | AC | 60 ms
68,448 KB |
testcase_41 | AC | 61 ms
68,744 KB |
testcase_42 | AC | 61 ms
68,448 KB |
testcase_43 | AC | 60 ms
68,448 KB |
testcase_44 | AC | 61 ms
68,448 KB |
testcase_45 | AC | 60 ms
68,576 KB |
testcase_46 | RE | - |
testcase_47 | RE | - |
testcase_48 | RE | - |
testcase_49 | RE | - |
testcase_50 | AC | 61 ms
68,696 KB |
testcase_51 | AC | 60 ms
68,312 KB |
testcase_52 | RE | - |
testcase_53 | RE | - |
testcase_54 | RE | - |
testcase_55 | RE | - |
testcase_56 | AC | 61 ms
68,696 KB |
testcase_57 | AC | 58 ms
68,312 KB |
testcase_58 | AC | 58 ms
68,568 KB |
testcase_59 | AC | 58 ms
68,312 KB |
testcase_60 | AC | 60 ms
68,440 KB |
testcase_61 | AC | 61 ms
68,824 KB |
testcase_62 | AC | 60 ms
68,440 KB |
testcase_63 | AC | 59 ms
68,696 KB |
testcase_64 | AC | 61 ms
68,568 KB |
testcase_65 | RE | - |
testcase_66 | AC | 60 ms
68,696 KB |
testcase_67 | AC | 60 ms
68,688 KB |
testcase_68 | AC | 59 ms
68,568 KB |
testcase_69 | RE | - |
testcase_70 | AC | 59 ms
68,696 KB |
testcase_71 | AC | 60 ms
68,824 KB |
testcase_72 | AC | 61 ms
68,824 KB |
testcase_73 | AC | 61 ms
68,576 KB |
testcase_74 | AC | 73 ms
77,664 KB |
testcase_75 | RE | - |
testcase_76 | AC | 74 ms
77,664 KB |
testcase_77 | AC | 75 ms
77,664 KB |
testcase_78 | AC | 75 ms
77,792 KB |
testcase_79 | AC | 63 ms
69,216 KB |
testcase_80 | AC | 75 ms
77,664 KB |
testcase_81 | AC | 78 ms
77,664 KB |
testcase_82 | AC | 74 ms
77,408 KB |
testcase_83 | AC | 76 ms
78,304 KB |
testcase_84 | AC | 75 ms
77,784 KB |
testcase_85 | RE | - |
testcase_86 | AC | 63 ms
69,344 KB |
testcase_87 | AC | 64 ms
69,448 KB |
testcase_88 | AC | 62 ms
68,936 KB |
testcase_89 | AC | 62 ms
69,576 KB |
testcase_90 | AC | 62 ms
69,320 KB |
testcase_91 | AC | 63 ms
69,448 KB |
testcase_92 | RE | - |
testcase_93 | RE | - |
testcase_94 | RE | - |
testcase_95 | RE | - |
testcase_96 | AC | 294 ms
92,744 KB |
testcase_97 | RE | - |
testcase_98 | RE | - |
testcase_99 | RE | - |
testcase_100 | AC | 251 ms
93,128 KB |
testcase_101 | RE | - |
evil_1_rnd_1.txt | RE | - |
evil_1_rnd_2.txt | AC | 470 ms
93,384 KB |
evil_2_big_1.txt | RE | - |
evil_2_big_2.txt | RE | - |
evil_2_big_3.txt | RE | - |
evil_3_sorted_1.txt | AC | 360 ms
92,880 KB |
evil_4_sorted_rev_1.txt | AC | 116 ms
91,992 KB |
evil_4_sorted_rev_2.txt | AC | 129 ms
92,248 KB |
evil_400_sorted.txt | AC | 541 ms
94,032 KB |
evil_400_sorted_rev.txt | AC | 144 ms
92,888 KB |
ソースコード
N = int(input()) L = list(range(1, N + 1)) ans = [] def check(ans, mid, L): temp = L[mid] L1 = L[:mid] L2 = L[mid+1:] lst = ["?"] + ans + [temp] + L1 + L2 print(*lst, flush=True) flag = int(input()) return flag for i in range(N - 1): yes = 0 temp = L.pop() lst = ["?"] + ans + [temp] + L print(*lst, flush=True) flag = int(input()) if flag: ans.append(temp) continue L.append(temp) no = len(L) - 1 while no - yes != 1: mid = (yes + no)//2 if check(ans, mid, L): yes = mid else: no = mid v = L.pop(yes) ans.append(v) ans = ["!"] + ans + L print(*ans)