結果

問題 No.8126 Brainfxxk easy
コンテスト
ユーザー 👑 tails
提出日時 2026-04-01 21:46:04
言語 Perl
(5.42.1)
コンパイル:
perl -cw _filename_
実行:
perl -X _filename_
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 128 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 397 ms
コンパイル使用メモリ 7,844 KB
実行使用メモリ 15,816 KB
最終ジャッジ日時 2026-04-01 21:46:09
合計ジャッジ時間 1,131 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible precedence problem on bitwise | operator at Main.pl line 7.
Main.pl syntax OK

ソースコード

diff #
raw source code

@a=(0)x<>;
for(<>=~/./g){
	/-/&&--$a[$p];
	/\+/&&++$a[$p];
	/</&&--$p;
	/>/&&++$p;
	$p<0|$p>=@a&&exit!print"error";
}
print"@a";
0