結果

問題 No.858 わり算
ユーザー tonyu0tonyu0
提出日時 2020-05-04 09:37:06
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2023-09-06 02:39:36
合計ジャッジ時間 956 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,088 KB
testcase_01 AC 6 ms
5,096 KB
testcase_02 AC 6 ms
5,148 KB
testcase_03 AC 5 ms
5,144 KB
testcase_04 AC 5 ms
5,200 KB
testcase_05 AC 5 ms
5,092 KB
testcase_06 AC 6 ms
5,248 KB
testcase_07 AC 5 ms
5,196 KB
testcase_08 AC 6 ms
5,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

my ($a, $b) = glob<>;

print int($a / $b),'.';
$a %= $b;
for (my $i = 0; $i < 50; ++$i) {
    $a *= 10;
    print int($a / $b);
    $a %= $b;
}
0