結果

問題 No.973 余興
ユーザー chinchillachinchilla
提出日時 2020-01-29 21:54:00
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 414 ms / 4,000 ms
コード長 315 bytes
コンパイル時間 761 ms
コンパイル使用メモリ 10,856 KB
実行使用メモリ 35,528 KB
最終ジャッジ日時 2023-10-14 07:35:13
合計ジャッジ時間 17,340 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 410 ms
35,328 KB
testcase_01 AC 408 ms
35,528 KB
testcase_02 AC 414 ms
35,348 KB
testcase_03 AC 413 ms
35,436 KB
testcase_04 AC 406 ms
35,284 KB
testcase_05 AC 408 ms
35,444 KB
testcase_06 AC 406 ms
35,420 KB
testcase_07 AC 402 ms
35,524 KB
testcase_08 AC 399 ms
35,364 KB
testcase_09 AC 401 ms
35,516 KB
testcase_10 AC 404 ms
35,024 KB
testcase_11 AC 203 ms
33,500 KB
testcase_12 AC 209 ms
33,672 KB
testcase_13 AC 202 ms
33,532 KB
testcase_14 AC 202 ms
33,488 KB
testcase_15 AC 165 ms
31,936 KB
testcase_16 AC 168 ms
32,008 KB
testcase_17 AC 159 ms
31,212 KB
testcase_18 AC 163 ms
31,596 KB
testcase_19 AC 163 ms
31,532 KB
testcase_20 AC 157 ms
31,216 KB
testcase_21 AC 168 ms
31,892 KB
testcase_22 AC 167 ms
31,928 KB
testcase_23 AC 169 ms
31,636 KB
testcase_24 AC 165 ms
31,568 KB
testcase_25 AC 150 ms
30,560 KB
testcase_26 AC 162 ms
31,220 KB
testcase_27 AC 175 ms
32,104 KB
testcase_28 AC 166 ms
31,520 KB
testcase_29 AC 163 ms
31,456 KB
testcase_30 AC 252 ms
35,368 KB
testcase_31 AC 262 ms
35,248 KB
testcase_32 AC 266 ms
35,344 KB
testcase_33 AC 268 ms
35,432 KB
testcase_34 AC 262 ms
35,272 KB
testcase_35 AC 260 ms
35,260 KB
testcase_36 AC 255 ms
34,996 KB
testcase_37 AC 255 ms
35,020 KB
testcase_38 AC 253 ms
35,256 KB
testcase_39 AC 258 ms
35,312 KB
testcase_40 AC 140 ms
29,592 KB
testcase_41 AC 136 ms
29,472 KB
testcase_42 AC 137 ms
29,588 KB
testcase_43 AC 139 ms
29,648 KB
testcase_44 AC 147 ms
29,828 KB
testcase_45 AC 144 ms
29,692 KB
testcase_46 AC 256 ms
35,360 KB
testcase_47 AC 261 ms
35,284 KB
testcase_48 AC 262 ms
35,284 KB
testcase_49 AC 257 ms
35,056 KB
testcase_50 AC 260 ms
35,412 KB
testcase_51 AC 261 ms
35,276 KB
testcase_52 AC 264 ms
35,432 KB
testcase_53 AC 262 ms
35,144 KB
testcase_54 AC 258 ms
35,416 KB
testcase_55 AC 266 ms
35,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, numpy as np
n, x = map(int, input().split())
a = np.genfromtxt(sys.stdin, dtype=int)
b = np.vstack((np.zeros((2, n), dtype=int), a, a))
while b.shape[1] > 1:
	b, c = b[:,:-1], b[:,1:]
	b[0] += c[2]
	b[1] = c[1] + b[3]
	b[2] = c[2]
	b[:2, np.logical_and(b[0]>x, b[1]>x)] = 0
print("A" if b[0,0] else "B")
0