結果

問題 No.583 鉄道同好会
ユーザー tailstails
提出日時 2017-10-30 01:21:49
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,410 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 39,040 KB
最終ジャッジ日時 2024-05-01 22:31:21
合計ジャッジ時間 10,485 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
6,812 KB
testcase_01 AC 3 ms
6,940 KB
testcase_02 AC 4 ms
6,940 KB
testcase_03 AC 4 ms
6,944 KB
testcase_04 AC 4 ms
6,944 KB
testcase_05 AC 4 ms
6,940 KB
testcase_06 AC 4 ms
6,944 KB
testcase_07 AC 5 ms
6,940 KB
testcase_08 AC 6 ms
6,940 KB
testcase_09 AC 8 ms
6,944 KB
testcase_10 AC 5 ms
6,940 KB
testcase_11 AC 1,044 ms
25,216 KB
testcase_12 AC 1,097 ms
26,240 KB
testcase_13 AC 1,064 ms
26,240 KB
testcase_14 AC 1,082 ms
26,240 KB
testcase_15 AC 1,153 ms
27,264 KB
testcase_16 AC 1,350 ms
35,072 KB
testcase_17 AC 1,410 ms
39,040 KB
testcase_18 AC 1,402 ms
38,912 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Smartmatch is deprecated at Main.pl line 1.
Possible precedence problem on bitwise & operator at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

sub f{my$x=$_;$g[$_]or$g[$_]=1,map$$x[$_]&&&f,0..499}<>;map{$d[$_]^=$$_[$==$`+$&-$_]=$h[$_]=1for/\d+/g}<>;f$_=$=;print@g~~@h&grep($_,@d)<3?YES:NO
0