結果

問題 No.149 碁石の移動
ユーザー %20%20
提出日時 2017-03-02 17:22:19
言語 Perl
(5.38.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 761 ms
コンパイル使用メモリ 5,324 KB
実行使用メモリ 5,384 KB
最終ジャッジ日時 2023-08-25 17:50:14
合計ジャッジ時間 1,499 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,116 KB
testcase_01 AC 6 ms
5,052 KB
testcase_02 AC 6 ms
5,076 KB
testcase_03 AC 6 ms
5,364 KB
testcase_04 AC 6 ms
5,280 KB
testcase_05 AC 5 ms
5,076 KB
testcase_06 AC 6 ms
5,384 KB
testcase_07 AC 6 ms
5,208 KB
testcase_08 AC 6 ms
5,200 KB
testcase_09 AC 6 ms
5,368 KB
testcase_10 AC 6 ms
5,368 KB
testcase_11 AC 5 ms
5,208 KB
testcase_12 AC 6 ms
5,052 KB
testcase_13 AC 5 ms
5,172 KB
testcase_14 AC 6 ms
5,308 KB
testcase_15 AC 6 ms
5,300 KB
testcase_16 AC 5 ms
5,168 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::Bb" used only once: possible typo at Main.pl line 2.
Main.pl syntax OK

ソースコード

diff #

($Aw,$Ab)=glob<>;
($Bw,$Bb)=glob<>;
($C,$D)=glob<>;
if($Ab<$C){
	$Aw-=$C-$Ab;
	$Bw+=$C-$Ab
}
if($Bw<$D){
	$Aw+=$Bw
}else{
	$Aw+=$D
}
print$Aw
0