結果
| 問題 |
No.1021 Children in Classrooms
|
| コンテスト | |
| ユーザー |
syosinnsya8
|
| 提出日時 | 2020-04-10 21:52:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 315 bytes |
| コンパイル時間 | 206 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 35,356 KB |
| 最終ジャッジ日時 | 2024-09-15 20:13:32 |
| 合計ジャッジ時間 | 11,764 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 TLE * 1 -- * 10 |
ソースコード
n,m=map(int,input().split())
a=list(map(int,input().split()))
s=input()
for i in range(m):
if s[i]=='L':
for i in range(n-1):
a[i]+=a[i+1]
a[i+1]=0
else:
for i in reversed(range(1,n)):
a[i]+=a[i-1]
a[i-1]=0
ans=' '.join(map(str,a))
print(ans)
syosinnsya8