結果

問題 No.583 鉄道同好会
ユーザー tailstails
提出日時 2017-10-30 01:24:23
言語 Perl
(5.38.0)
結果
AC  
実行時間 492 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 477 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 38,712 KB
最終ジャッジ日時 2023-08-14 10:00:42
合計ジャッジ時間 4,083 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
4,956 KB
testcase_01 AC 4 ms
4,860 KB
testcase_02 AC 5 ms
4,992 KB
testcase_03 AC 4 ms
5,024 KB
testcase_04 AC 4 ms
5,012 KB
testcase_05 AC 4 ms
4,952 KB
testcase_06 AC 5 ms
4,864 KB
testcase_07 AC 5 ms
5,072 KB
testcase_08 AC 6 ms
5,080 KB
testcase_09 AC 7 ms
5,000 KB
testcase_10 AC 100 ms
8,172 KB
testcase_11 AC 195 ms
16,512 KB
testcase_12 AC 232 ms
19,248 KB
testcase_13 AC 230 ms
19,176 KB
testcase_14 AC 232 ms
18,992 KB
testcase_15 AC 271 ms
22,236 KB
testcase_16 AC 421 ms
33,296 KB
testcase_17 AC 492 ms
38,712 KB
testcase_18 AC 489 ms
38,460 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Smartmatch is experimental 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