結果
問題 | No.2962 Sum Bomb Bomber |
ユーザー | detteiuu |
提出日時 | 2024-11-16 15:57:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 165 ms / 2,000 ms |
コード長 | 1,041 bytes |
コンパイル時間 | 464 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 70,760 KB |
平均クエリ数 | 117.83 |
最終ジャッジ日時 | 2024-11-16 15:57:28 |
合計ジャッジ時間 | 12,642 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 109 ms
69,480 KB |
testcase_01 | AC | 139 ms
70,760 KB |
testcase_02 | AC | 157 ms
69,600 KB |
testcase_03 | AC | 112 ms
69,384 KB |
testcase_04 | AC | 139 ms
70,184 KB |
testcase_05 | AC | 125 ms
68,840 KB |
testcase_06 | AC | 124 ms
70,376 KB |
testcase_07 | AC | 143 ms
70,120 KB |
testcase_08 | AC | 141 ms
70,120 KB |
testcase_09 | AC | 159 ms
69,864 KB |
testcase_10 | AC | 148 ms
69,864 KB |
testcase_11 | AC | 109 ms
68,712 KB |
testcase_12 | AC | 115 ms
68,840 KB |
testcase_13 | AC | 107 ms
68,584 KB |
testcase_14 | AC | 165 ms
69,992 KB |
testcase_15 | AC | 140 ms
70,120 KB |
testcase_16 | AC | 120 ms
68,456 KB |
testcase_17 | AC | 120 ms
68,968 KB |
testcase_18 | AC | 120 ms
69,224 KB |
testcase_19 | AC | 118 ms
68,968 KB |
testcase_20 | AC | 106 ms
68,328 KB |
testcase_21 | AC | 121 ms
69,864 KB |
testcase_22 | AC | 131 ms
70,504 KB |
testcase_23 | AC | 135 ms
69,232 KB |
testcase_24 | AC | 137 ms
68,840 KB |
testcase_25 | AC | 116 ms
68,712 KB |
testcase_26 | AC | 122 ms
69,096 KB |
testcase_27 | AC | 155 ms
70,248 KB |
testcase_28 | AC | 136 ms
69,120 KB |
testcase_29 | AC | 126 ms
69,224 KB |
testcase_30 | AC | 153 ms
69,736 KB |
testcase_31 | AC | 113 ms
68,328 KB |
testcase_32 | AC | 142 ms
69,352 KB |
testcase_33 | AC | 110 ms
68,840 KB |
testcase_34 | AC | 144 ms
68,968 KB |
testcase_35 | AC | 137 ms
70,112 KB |
testcase_36 | AC | 135 ms
69,608 KB |
testcase_37 | AC | 119 ms
68,840 KB |
testcase_38 | AC | 141 ms
69,992 KB |
testcase_39 | AC | 140 ms
70,376 KB |
testcase_40 | AC | 147 ms
70,120 KB |
testcase_41 | AC | 139 ms
69,480 KB |
testcase_42 | AC | 119 ms
68,712 KB |
testcase_43 | AC | 122 ms
70,408 KB |
testcase_44 | AC | 124 ms
68,456 KB |
testcase_45 | AC | 127 ms
68,712 KB |
testcase_46 | AC | 141 ms
69,864 KB |
testcase_47 | AC | 123 ms
69,096 KB |
testcase_48 | AC | 147 ms
69,864 KB |
testcase_49 | AC | 144 ms
68,712 KB |
testcase_50 | AC | 137 ms
69,736 KB |
testcase_51 | AC | 102 ms
68,576 KB |
testcase_52 | AC | 99 ms
69,088 KB |
testcase_53 | AC | 99 ms
68,576 KB |
testcase_54 | AC | 138 ms
69,600 KB |
testcase_55 | AC | 120 ms
70,496 KB |
testcase_56 | AC | 124 ms
69,472 KB |
testcase_57 | AC | 140 ms
68,704 KB |
testcase_58 | AC | 122 ms
68,728 KB |
testcase_59 | AC | 127 ms
68,960 KB |
testcase_60 | AC | 130 ms
69,216 KB |
testcase_61 | AC | 120 ms
69,472 KB |
testcase_62 | AC | 135 ms
70,240 KB |
testcase_63 | AC | 133 ms
69,600 KB |
testcase_64 | AC | 162 ms
69,984 KB |
ソースコード
N = int(input()) def func(x, y): print(1, x, y) return int(input()) X, Y = -1, -1 LL = func(-(10**9), 0) LR = func(-(10**9-1), 0) RR = func(10**9, 0) RL = func(10**9-1, 0) if LL < LR: X = -(10**9) elif RR < RL: X = 10**9 else: left = -(10**9) right = 10**9 mid = -1 while True: mid = (left+right)//2 L = func(mid-1, 0) M = func(mid, 0) R = func(mid+1, 0) if L > M > R: left = mid elif L < M < R: right = mid else: break X = mid LL = func(0, -(10**9)) LR = func(0, -(10**9-1)) RR = func(0, 10**9) RL = func(0, 10**9-1) if LL < LR: Y = -(10**9) elif RR < RL: Y = 10**9 else: left = -(10**9) right = 10**9 mid = -1 while True: mid = (left+right)//2 L = func(0, mid-1) M = func(0, mid) R = func(0, mid+1) if L > M > R: left = mid elif L < M < R: right = mid else: break Y = mid print(2, X, Y)