結果

問題 No.91 赤、緑、青の石
ユーザー %20%20
提出日時 2018-06-01 15:21:04
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 190 bytes
コンパイル時間 821 ms
コンパイル使用メモリ 7,060 KB
実行使用メモリ 5,384 KB
最終ジャッジ日時 2023-09-12 21:19:33
合計ジャッジ時間 2,271 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 6 ms
5,120 KB
testcase_07 AC 6 ms
5,264 KB
testcase_08 AC 6 ms
5,236 KB
testcase_09 AC 6 ms
5,076 KB
testcase_10 AC 6 ms
5,128 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 6 ms
5,060 KB
testcase_17 AC 6 ms
5,196 KB
testcase_18 AC 6 ms
5,056 KB
testcase_19 AC 6 ms
5,228 KB
testcase_20 AC 6 ms
5,164 KB
testcase_21 AC 6 ms
5,256 KB
testcase_22 AC 6 ms
5,268 KB
testcase_23 AC 6 ms
5,264 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 6 ms
5,072 KB
testcase_28 AC 6 ms
5,256 KB
testcase_29 AC 6 ms
5,288 KB
testcase_30 AC 6 ms
5,272 KB
testcase_31 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($a,$b,$c)=sort{$a-$b}glob<>;

$x+=$a;
$b-=$a;
$c-=$a;
$a-=$a;

$t=$b<$c/3?$b:$c/3|0;
$x+=$t;
$b-=$t;
$c-=$t*3;

$t=$c<$b/3?$c:$b/3|0;
$x+=$t;
$c-=$t;
$b-=$t*3;

$x+=$c/5|0;
$c%=5;

print$x
0