結果

問題 No.910 素数部分列
コンテスト
ユーザー 👑 tails
提出日時 2019-10-24 16:36:02
言語 Perl
(5.42.1)
コンパイル:
perl -cw _filename_
実行:
perl -X _filename_
結果
AC  
実行時間 143 ms / 1,000 ms
+ 55µs
コード長 71 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 386 ms
コンパイル使用メモリ 5,888 KB
実行使用メモリ 28,928 KB
最終ジャッジ日時 2026-08-13 13:55:22
合計ジャッジ時間 6,750 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 50
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "c" may clash with future reserved word at Main.pl line 1.
Unquoted string "b" may clash with future reserved word at Main.pl line 1.
Useless use of non-destructive substitution (s///r) in void context at Main.pl line 1.
Name "main::c" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #
raw source code

<>;<>=~s/./++${$&<2?*-:$&<9||$---?c:b}/ger;print$c+$--($-=$-/2-$b/4+.8)
0