結果

問題 No.388 階段 (1)
ユーザー simple-acsimple-ac
提出日時 2021-06-01 21:29:16
言語 Perl
(5.38.2)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 485 ms
コンパイル使用メモリ 7,936 KB
実行使用メモリ 7,808 KB
最終ジャッジ日時 2024-04-26 09:52:17
合計ジャッジ時間 1,289 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,680 KB
testcase_01 AC 16 ms
7,680 KB
testcase_02 AC 15 ms
7,680 KB
testcase_03 AC 17 ms
7,680 KB
testcase_04 AC 15 ms
7,680 KB
testcase_05 AC 16 ms
7,680 KB
testcase_06 AC 16 ms
7,808 KB
testcase_07 AC 16 ms
7,680 KB
testcase_08 AC 16 ms
7,808 KB
testcase_09 AC 16 ms
7,808 KB
testcase_10 AC 18 ms
7,680 KB
testcase_11 AC 16 ms
7,680 KB
testcase_12 AC 16 ms
7,808 KB
testcase_13 AC 16 ms
7,680 KB
testcase_14 AC 16 ms
7,680 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;
use utf8;
use POSIX;

my $line = <STDIN>;
chomp $line;
my ($S, $F) = split /\s/, $line;
my $ans = 0;
if ($F != 0){
	$ans = floor ($S / $F) + 1;
}
print "$ans\n";
0