結果
| 問題 |
No.859 路線A、路線B、路線C
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2019-08-09 23:11:25 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 1,000 ms |
| コード長 | 358 bytes |
| コンパイル時間 | 178 ms |
| コンパイル使用メモリ | 6,820 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-19 15:40:29 |
| 合計ジャッジ時間 | 1,288 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
コンパイルメッセージ
Name "main::B" used only once: possible typo at Main.pl line 1. Name "main::C" used only once: possible typo at Main.pl line 1. Name "main::A" used only once: possible typo at Main.pl line 1. Main.pl syntax OK
ソースコード
($A,$B,$C)=glob<>;
($s0,$t0)=glob<>;
($s1,$t1)=glob<>;
if($s0 eq $s1){
($t0,$t1)=($t1,$t0)if$t0>$t1;
push@a,$t1-$t0;
push@a,($t0-1)+1+($$_-1)+1+($$s0-$t1) for A..C;
}else{
push@a,($t0-1)+1+($t1-1);
push@a,($$s0-$t0)+1+($$s1-$t1);
push@a,($t0-1)+1+($$_-1)+1+($$s1-$t1) for A..C;
push@a,($$s0-$t0)+1+($$_-1)+1+($t1-1) for A..C;
}
printf sort{$a<=>$b}@a;
tails