結果

問題 No.268 ラッピング(Easy)
ユーザー %20%20
提出日時 2017-02-08 11:55:55
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 5,000 ms
コード長 247 bytes
コンパイル時間 620 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2023-08-26 17:23:08
合計ジャッジ時間 1,505 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,132 KB
testcase_01 AC 6 ms
5,344 KB
testcase_02 AC 5 ms
5,228 KB
testcase_03 AC 5 ms
5,376 KB
testcase_04 AC 5 ms
5,204 KB
testcase_05 AC 5 ms
5,368 KB
testcase_06 AC 6 ms
5,176 KB
testcase_07 AC 6 ms
5,264 KB
testcase_08 AC 6 ms
5,220 KB
testcase_09 AC 6 ms
5,236 KB
testcase_10 AC 6 ms
5,068 KB
testcase_11 AC 5 ms
5,200 KB
testcase_12 AC 6 ms
5,172 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::x" used only once: possible typo at Main.pl line 1.
Name "main::y" used only once: possible typo at Main.pl line 1.
Name "main::z" used only once: possible typo at Main.pl line 1.
Name "main::c" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($a,$b,$c,$x,$y,$z)=glob<>.<>;
printf sort{$a-$b}eval'
	(a+b)*x+(b+c)*y+(c+a)*z<<1,
	(a+b)*x+(b+c)*z+(c+a)*y<<1,
	(a+b)*y+(b+c)*z+(c+a)*x<<1,
	(a+b)*y+(b+c)*x+(c+a)*z<<1,
	(a+b)*z+(b+c)*x+(c+a)*y<<1,
	(a+b)*z+(b+c)*y+(c+a)*x<<1
'=~s/[a-z]/\$$&/gr
0