結果

問題 No.935 う し た ぷ に き あ く ん 笑 ビ - ム
ユーザー vwxyzvwxyz
提出日時 2024-04-19 19:12:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 356 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 18,080 KB
最終ジャッジ日時 2024-04-19 19:13:49
合計ジャッジ時間 9,416 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 144 ms
11,008 KB
testcase_01 AC 604 ms
10,880 KB
testcase_02 AC 61 ms
10,880 KB
testcase_03 AC 674 ms
10,880 KB
testcase_04 AC 797 ms
11,136 KB
testcase_05 AC 92 ms
10,880 KB
testcase_06 AC 1,298 ms
11,008 KB
testcase_07 AC 1,199 ms
11,008 KB
testcase_08 TLE -
testcase_09 AC 1,708 ms
11,008 KB
testcase_10 TLE -
testcase_11 TLE -
testcase_12 AC 26 ms
10,880 KB
testcase_13 AC 26 ms
10,752 KB
testcase_14 AC 26 ms
10,752 KB
testcase_15 AC 26 ms
10,752 KB
testcase_16 AC 26 ms
10,880 KB
testcase_17 TLE -
testcase_18 AC 554 ms
11,136 KB
testcase_19 AC 1,449 ms
11,136 KB
testcase_20 AC 1,008 ms
11,008 KB
testcase_21 AC 183 ms
11,008 KB
testcase_22 AC 57 ms
10,880 KB
testcase_23 AC 30 ms
10,880 KB
testcase_24 AC 37 ms
10,752 KB
testcase_25 AC 37 ms
10,880 KB
testcase_26 AC 27 ms
10,880 KB
testcase_27 AC 25 ms
10,880 KB
testcase_28 AC 34 ms
10,880 KB
testcase_29 AC 43 ms
10,752 KB
testcase_30 AC 37 ms
10,752 KB
testcase_31 AC 33 ms
10,752 KB
testcase_32 AC 41 ms
10,752 KB
testcase_33 AC 1,170 ms
11,008 KB
testcase_34 TLE -
testcase_35 AC 1,847 ms
11,136 KB
testcase_36 AC 435 ms
10,880 KB
testcase_37 AC 1,111 ms
11,136 KB
testcase_38 AC 1,231 ms
11,008 KB
testcase_39 TLE -
testcase_40 TLE -
testcase_41 TLE -
testcase_42 AC 1,777 ms
11,136 KB
testcase_43 TLE -
testcase_44 AC 838 ms
11,136 KB
testcase_45 TLE -
testcase_46 AC 285 ms
10,880 KB
testcase_47 AC 995 ms
11,008 KB
testcase_48 AC 712 ms
11,008 KB
testcase_49 AC 857 ms
11,008 KB
testcase_50 AC 1,049 ms
11,008 KB
testcase_51 AC 1,319 ms
11,136 KB
testcase_52 AC 1,299 ms
11,008 KB
testcase_53 TLE -
testcase_54 AC 460 ms
11,008 KB
testcase_55 AC 99 ms
10,880 KB
testcase_56 AC 1,654 ms
11,136 KB
testcase_57 AC 1,066 ms
11,008 KB
testcase_58 AC 26 ms
10,752 KB
testcase_59 AC 26 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
S=[0]+[s=="E" for s in input()]
for i in range(1,N+1):
    S[i]+=S[i-1]
A=[0]+list(map(int,input().split()))
for i in range(1,N+1):
    A[i]+=A[i-1]
Q=int(input())
K=list(map(int,input().split()))
for k in K:
    l=0
    ans=0
    for r in range(N+1):
        while A[r]-A[l]>k:
            l+=1
        ans=max(ans,S[r]-S[l])
    print(ans)
0