結果
問題 |
No.1021 Children in Classrooms
|
ユーザー |
|
提出日時 | 2020-08-24 17:48:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 209 bytes |
コンパイル時間 | 140 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 37,040 KB |
最終ジャッジ日時 | 2024-11-06 10:30:28 |
合計ジャッジ時間 | 4,628 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)