結果
| 問題 | No.1021 Children in Classrooms |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2020-06-10 17:44:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 280 bytes |
| 記録 | |
| コンパイル時間 | 143 ms |
| コンパイル使用メモリ | 85,264 KB |
| 実行使用メモリ | 378,224 KB |
| 最終ジャッジ日時 | 2026-03-08 03:18:59 |
| 合計ジャッジ時間 | 31,461 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 TLE * 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