結果

問題 No.63 ポッキーゲーム
ユーザー kuroi_13kuroi_13
提出日時 2017-01-26 09:39:39
言語 Perl
(5.38.2)
結果
AC  
実行時間 5 ms / 5,000 ms
コード長 136 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 5,060 KB
最終ジャッジ日時 2023-08-25 19:21:18
合計ジャッジ時間 1,277 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,052 KB
testcase_01 AC 5 ms
4,960 KB
testcase_02 AC 5 ms
4,928 KB
testcase_03 AC 4 ms
5,048 KB
testcase_04 AC 5 ms
5,060 KB
testcase_05 AC 4 ms
4,768 KB
testcase_06 AC 4 ms
4,964 KB
testcase_07 AC 5 ms
4,768 KB
testcase_08 AC 5 ms
4,920 KB
testcase_09 AC 5 ms
5,024 KB
testcase_10 AC 4 ms
4,876 KB
testcase_11 AC 5 ms
5,016 KB
testcase_12 AC 5 ms
4,752 KB
testcase_13 AC 5 ms
4,888 KB
testcase_14 AC 4 ms
4,804 KB
testcase_15 AC 4 ms
4,988 KB
testcase_16 AC 5 ms
4,828 KB
testcase_17 AC 5 ms
5,020 KB
testcase_18 AC 4 ms
4,800 KB
testcase_19 AC 4 ms
4,892 KB
testcase_20 AC 5 ms
5,020 KB
testcase_21 AC 4 ms
4,800 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;

my($l, $k) = split(' ', <STDIN>);
my $num = int($l/($k*2));
if($l%($k*2) == 0){
  $num -= 1;
}
print $num*$k;
0