結果

問題 No.973 余興
ユーザー maspymaspy
提出日時 2020-05-07 16:15:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 237 ms / 4,000 ms
コード長 192 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 31,644 KB
最終ジャッジ日時 2023-09-16 07:58:57
合計ジャッジ時間 12,662 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 226 ms
31,464 KB
testcase_01 AC 232 ms
31,584 KB
testcase_02 AC 227 ms
31,584 KB
testcase_03 AC 226 ms
31,584 KB
testcase_04 AC 227 ms
31,644 KB
testcase_05 AC 232 ms
31,608 KB
testcase_06 AC 235 ms
31,532 KB
testcase_07 AC 229 ms
31,504 KB
testcase_08 AC 227 ms
31,476 KB
testcase_09 AC 237 ms
31,536 KB
testcase_10 AC 223 ms
31,432 KB
testcase_11 AC 175 ms
31,364 KB
testcase_12 AC 177 ms
31,284 KB
testcase_13 AC 180 ms
31,436 KB
testcase_14 AC 180 ms
31,408 KB
testcase_15 AC 148 ms
31,184 KB
testcase_16 AC 142 ms
31,184 KB
testcase_17 AC 136 ms
30,768 KB
testcase_18 AC 138 ms
30,980 KB
testcase_19 AC 142 ms
30,972 KB
testcase_20 AC 138 ms
30,664 KB
testcase_21 AC 143 ms
31,184 KB
testcase_22 AC 148 ms
31,256 KB
testcase_23 AC 140 ms
30,932 KB
testcase_24 AC 142 ms
30,804 KB
testcase_25 AC 138 ms
30,312 KB
testcase_26 AC 139 ms
30,708 KB
testcase_27 AC 142 ms
31,296 KB
testcase_28 AC 140 ms
30,824 KB
testcase_29 AC 138 ms
30,984 KB
testcase_30 AC 225 ms
31,528 KB
testcase_31 AC 224 ms
31,600 KB
testcase_32 AC 228 ms
31,432 KB
testcase_33 AC 224 ms
31,504 KB
testcase_34 AC 222 ms
31,520 KB
testcase_35 AC 225 ms
31,632 KB
testcase_36 AC 222 ms
31,624 KB
testcase_37 AC 222 ms
31,452 KB
testcase_38 AC 225 ms
31,544 KB
testcase_39 AC 227 ms
31,408 KB
testcase_40 AC 127 ms
29,588 KB
testcase_41 AC 128 ms
29,572 KB
testcase_42 AC 127 ms
29,624 KB
testcase_43 AC 128 ms
29,712 KB
testcase_44 AC 128 ms
29,748 KB
testcase_45 AC 128 ms
29,684 KB
testcase_46 AC 227 ms
31,528 KB
testcase_47 AC 226 ms
31,572 KB
testcase_48 AC 225 ms
31,520 KB
testcase_49 AC 220 ms
31,564 KB
testcase_50 AC 224 ms
31,556 KB
testcase_51 AC 226 ms
31,604 KB
testcase_52 AC 227 ms
31,616 KB
testcase_53 AC 231 ms
31,428 KB
testcase_54 AC 227 ms
31,448 KB
testcase_55 AC 226 ms
31,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from numpy import *
A=int64(open(0).read().split())
N,X=A[:2]
A=A[2:]
l=r=A*0
for n in range(1,N):
  l=l[1:]+A[:-n]
  r=r[:-1]+A[n:]
  i=(l>X)&(r>X)
  l*=~i
  r*=~i
print('A' if l[0] else 'B')
0