結果

問題 No.1225 I hate I hate Matrix Construction
ユーザー tailstails
提出日時 2020-09-11 21:42:51
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 144 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 5,324 KB
実行使用メモリ 4,668 KB
最終ジャッジ日時 2023-08-27 13:19:44
合計ジャッジ時間 1,905 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,520 KB
testcase_01 WA -
testcase_02 AC 2 ms
4,532 KB
testcase_03 WA -
testcase_04 AC 2 ms
4,516 KB
testcase_05 AC 3 ms
4,512 KB
testcase_06 AC 2 ms
4,484 KB
testcase_07 WA -
testcase_08 AC 2 ms
4,548 KB
testcase_09 AC 2 ms
4,476 KB
testcase_10 AC 2 ms
4,488 KB
testcase_11 AC 2 ms
4,420 KB
testcase_12 AC 2 ms
4,540 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 2 ms
4,484 KB
testcase_16 AC 3 ms
4,548 KB
testcase_17 AC 3 ms
4,592 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 3 ms
4,548 KB
testcase_25 AC 3 ms
4,636 KB
testcase_26 AC 3 ms
4,404 KB
testcase_27 AC 2 ms
4,400 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 3 ms
4,508 KB
testcase_35 AC 2 ms
4,468 KB
testcase_36 AC 2 ms
4,388 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;$s=<>;$t=<>;
$x=$s=~y/2//;
$y=$t=~y/2//;
if($x|$y){
	print+($x+$y)*$n-$x*$y;
}else{
	$x=$s=~y/1//+0;
	$y=$s=~y/1//+0;
	print$x>$y?$x:$y;
}
0