結果

問題 No.46 はじめのn歩
ユーザー sironekotorosironekotoro
提出日時 2018-11-15 16:04:42
言語 Perl
(5.38.2)
結果
AC  
実行時間 5 ms / 5,000 ms
コード長 165 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 5,216 KB
最終ジャッジ日時 2023-08-26 01:17:46
合計ジャッジ時間 857 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,216 KB
testcase_01 AC 5 ms
4,944 KB
testcase_02 AC 4 ms
5,032 KB
testcase_03 AC 4 ms
4,928 KB
testcase_04 AC 4 ms
5,040 KB
testcase_05 AC 4 ms
4,920 KB
testcase_06 AC 4 ms
5,020 KB
testcase_07 AC 4 ms
4,908 KB
testcase_08 AC 4 ms
4,988 KB
testcase_09 AC 4 ms
5,128 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;

my $line = <>;
chomp $line;

my ($a,$b) = split / /, $line;

if ($b % $a == 0){
    print $b / $a;
}else{
    print (int ($b / $a) + 1);
}
0