結果

問題 No.46 はじめのn歩
ユーザー 3846masa3846masa
提出日時 2015-03-16 04:07:33
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 139 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 4,772 KB
最終ジャッジ日時 2023-09-11 08:28:23
合計ジャッジ時間 821 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,580 KB
testcase_01 AC 3 ms
4,756 KB
testcase_02 AC 2 ms
4,628 KB
testcase_03 AC 2 ms
4,532 KB
testcase_04 AC 3 ms
4,540 KB
testcase_05 AC 2 ms
4,584 KB
testcase_06 AC 2 ms
4,772 KB
testcase_07 AC 3 ms
4,580 KB
testcase_08 AC 2 ms
4,496 KB
testcase_09 AC 2 ms
4,636 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

my ($one, $len) = split(/\s/, <STDIN>);
my $less = $len%$one;
$less = ($less == 0) ? 0 : $one - $less;
print int(($len + $less)/$one)."\n";
0