結果

問題 No.1021 Children in Classrooms
ユーザー _matumo__matumo_
提出日時 2020-09-24 16:08:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 201 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 39,672 KB
最終ジャッジ日時 2023-09-10 13:29:38
合計ジャッジ時間 6,091 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
39,672 KB
testcase_01 AC 17 ms
7,884 KB
testcase_02 AC 16 ms
7,864 KB
testcase_03 AC 35 ms
8,364 KB
testcase_04 AC 39 ms
8,476 KB
testcase_05 AC 37 ms
8,252 KB
testcase_06 AC 37 ms
8,240 KB
testcase_07 AC 62 ms
8,528 KB
testcase_08 AC 60 ms
8,468 KB
testcase_09 TLE -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
p=list(map(int,input().split()))
S=input()
for C in S:
    if C=='L':
        p[1]+=p[0]
        p=p[1:]+[0]
    else:
        p[-2]+=p[-1]
        p=[0]+p[0:N-1]
print(*p)
0