結果

問題 No.46 はじめのn歩
ユーザー shiCanoko_o
提出日時 2019-05-14 23:32:31
言語 Perl
(5.40.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 226 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 5,120 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-20 02:19:49
合計ジャッジ時間 552 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

my $centimeters = <STDIN>;

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

my $ans = $centimeters[1] / $centimeters[0];

if($ans> int($ans)){
   my $ans_r = int($ans) + 1;
   print "$ans_r\n";
}else{
    print int($ans)."\n";
}
0