結果

問題 No.2110 012 Matching
ユーザー tailstails
提出日時 2022-10-28 21:31:26
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,277 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 19,788 KB
最終ジャッジ日時 2023-09-20 04:17:57
合計ジャッジ時間 8,460 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,108 KB
testcase_01 AC 261 ms
8,772 KB
testcase_02 AC 679 ms
14,848 KB
testcase_03 AC 463 ms
11,424 KB
testcase_04 AC 928 ms
17,928 KB
testcase_05 AC 668 ms
14,172 KB
testcase_06 AC 655 ms
13,828 KB
testcase_07 AC 1,186 ms
19,676 KB
testcase_08 AC 47 ms
5,564 KB
testcase_09 AC 183 ms
7,204 KB
testcase_10 AC 1,277 ms
19,788 KB
testcase_11 AC 8 ms
5,036 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use integer;
<>;
for(<>){
    ($a,$b,$c)=glob;
	$d=$b>>1;
	$b-=$d*2;
	$e=$a<$c?$a:$c;
	$a-=$e;
	$c-=$e;
	$f=$a<$b?$a:$b;
	$g=$c>>1;
	print$d*2+$e*2+$f+$g,$/;
}
0