結果
| 問題 | No.8126 Brainfxxk easy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-01 22:25:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 386 ms |
| コンパイル使用メモリ | 84,736 KB |
| 実行使用メモリ | 136,832 KB |
| 最終ジャッジ日時 | 2026-04-01 22:25:49 |
| 合計ジャッジ時間 | 947 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
N=int(input())
dat=[0]*N
p=0
for c in input():
if c=="+":
dat[p]+=1
elif c=="-":
dat[p]-=1
elif c==">":
p+=1
else:
p-=1
if p not in range(N):
print("error")
break
else:
print(*dat)