結果

問題 No.583 鉄道同好会
ユーザー %20%20
提出日時 2018-07-30 05:20:40
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,210 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 576 ms
コンパイル使用メモリ 5,272 KB
実行使用メモリ 36,440 KB
最終ジャッジ日時 2023-09-27 11:28:55
合計ジャッジ時間 3,859 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
5,332 KB
testcase_01 AC 6 ms
5,348 KB
testcase_02 AC 6 ms
5,176 KB
testcase_03 AC 6 ms
5,228 KB
testcase_04 AC 6 ms
5,232 KB
testcase_05 AC 6 ms
5,216 KB
testcase_06 AC 7 ms
5,180 KB
testcase_07 AC 6 ms
5,132 KB
testcase_08 AC 6 ms
5,072 KB
testcase_09 AC 7 ms
5,220 KB
testcase_10 AC 7 ms
5,164 KB
testcase_11 AC 84 ms
10,128 KB
testcase_12 AC 118 ms
12,060 KB
testcase_13 AC 116 ms
12,056 KB
testcase_14 AC 116 ms
12,012 KB
testcase_15 AC 150 ms
13,996 KB
testcase_16 AC 276 ms
21,956 KB
testcase_17 AC 335 ms
25,612 KB
testcase_18 AC 1,210 ms
36,440 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub F{my$i=pop;$p[$i]=defined$p[$i]&&$i-$p[$i]?F($p[$i]):$i}
<>;/ /,$_[$`]^=1,$_[$']^=1,$p[F$']=F$`for@S=<>;
print grep($_,@_)>2||grep({F($S[0])-F$_}map glob,@S)?NO:YES
0