結果

問題 No.388 階段 (1)
ユーザー shiCanoko_oshiCanoko_o
提出日時 2019-05-15 11:15:40
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 4,728 KB
最終ジャッジ日時 2023-10-11 21:09:23
合計ジャッジ時間 1,135 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,580 KB
testcase_01 AC 2 ms
4,508 KB
testcase_02 AC 3 ms
4,512 KB
testcase_03 AC 2 ms
4,508 KB
testcase_04 AC 3 ms
4,484 KB
testcase_05 AC 2 ms
4,724 KB
testcase_06 AC 3 ms
4,576 KB
testcase_07 AC 3 ms
4,592 KB
testcase_08 AC 3 ms
4,580 KB
testcase_09 AC 3 ms
4,520 KB
testcase_10 AC 2 ms
4,512 KB
testcase_11 AC 3 ms
4,640 KB
testcase_12 AC 3 ms
4,620 KB
testcase_13 AC 3 ms
4,624 KB
testcase_14 AC 3 ms
4,728 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

my $stairs = <STDIN>;

my @stairs = split(/ /, $stairs);

my $high = $stairs[0] / $stairs[1];

if($high< int($high)){
   my $high_r = int($high) - 1;
   $high_r = $high_r + 1;
   print "$high_r\n";
}else{
    $high = $high + 1;
    print int($high)."\n";
}
0