結果

問題 No.453 製薬会社
ユーザー tailstails
提出日時 2016-12-04 00:26:29
言語 Perl
(5.38.2)
結果
AC  
実行時間 7 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 1,032 ms
コンパイル使用メモリ 7,108 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2023-08-18 12:15:27
合計ジャッジ時間 917 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,248 KB
testcase_01 AC 6 ms
5,376 KB
testcase_02 AC 6 ms
5,172 KB
testcase_03 AC 4 ms
5,116 KB
testcase_04 AC 7 ms
5,348 KB
testcase_05 AC 4 ms
5,200 KB
testcase_06 AC 6 ms
5,112 KB
testcase_07 AC 6 ms
5,224 KB
testcase_08 AC 5 ms
5,248 KB
testcase_09 AC 5 ms
5,056 KB
testcase_10 AC 5 ms
5,164 KB
testcase_11 AC 5 ms
5,268 KB
testcase_12 AC 6 ms
5,184 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($c,$d)=glob<>;
$a=($c*20+$d*-8)/13;
$b=($c*-7+$d*21)/13;
$a=$d/(1/4),$b=0 if $b<0;
$a=0,$b=$c/(2/7) if $a<0;
print$a*1000+$b*2000
0