結果

問題 No.277 根掘り葉掘り
ユーザー %20%20
提出日時 2018-07-30 06:41:51
言語 Perl
(5.38.2)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 163 bytes
コンパイル時間 24 ms
コンパイル使用メモリ 6,688 KB
最終ジャッジ日時 2024-04-27 02:35:32
合計ジャッジ時間 398 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
Backticks found where operator expected (Missing operator before "`,$'+!push@{$'+0},$`"?) at Main.pl line 2, near "@
$`,$'+!push@{$'+0},$`"
Useless use of push with no values at Main.pl line 2.
syntax error at Main.pl line 2, near "@
$`,$'+!push@{$'+0},$`"
Main.pl had compilation errors.

ソースコード

diff #

$N=<>;/ /,push@
$`,$'+!push@{$'+0},$`for<>;@q=(1,grep!($L[$_-1]=@$_-1&&$N),2..$N);push@q,grep{$L[$_-1]-=$-=$L[$_-1]-$L[$q-1]-1;$-}@$q while$q=shift@q;$,=$/;print@L
0