結果
| 問題 |
No.1021 Children in Classrooms
|
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2020-06-10 17:44:43 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 280 bytes |
| コンパイル時間 | 310 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 243,072 KB |
| 最終ジャッジ日時 | 2024-06-23 10:00:55 |
| 合計ジャッジ時間 | 4,721 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 TLE * 1 -- * 10 |
ソースコード
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=input()
m=0
x,y=0,0
for d in S:
if d=="L":
a=A.pop(0)
A[0]+=a
A.append(0)
else:
a=A.pop()
A[-1]+=a
A=[0]+A
for i in range(N):
print(A[i],end=" ")
print()
Kazun