結果
問題 |
No.1021 Children in Classrooms
|
ユーザー |
|
提出日時 | 2020-08-24 17:48:26 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 209 bytes |
コンパイル時間 | 318 ms |
コンパイル使用メモリ | 82,092 KB |
実行使用メモリ | 295,856 KB |
最終ジャッジ日時 | 2024-11-06 10:30:34 |
合計ジャッジ時間 | 4,598 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 TLE * 1 -- * 10 |
ソースコード
N,M = map(int,input().split()) A = list(map(int,input().split())) S = str(input()) for i in range(M): if S[i] == "L": A = [A[0]+A[1]]+A[2:]+[0] else: A = [0]+A[:-2]+[A[-2]+A[-1]] print(*A)