結果

問題 No.604 誕生日のお小遣い
ユーザー tailstails
提出日時 2017-12-04 00:05:04
言語 Perl
(5.38.2)
結果
AC  
実行時間 38 ms / 1,000 ms
コード長 106 bytes
コンパイル時間 977 ms
コンパイル使用メモリ 11,268 KB
実行使用メモリ 11,496 KB
最終ジャッジ日時 2023-08-14 01:20:47
合計ジャッジ時間 2,771 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
11,452 KB
testcase_01 AC 36 ms
11,284 KB
testcase_02 AC 37 ms
11,316 KB
testcase_03 AC 35 ms
11,476 KB
testcase_04 AC 36 ms
11,496 KB
testcase_05 AC 38 ms
11,316 KB
testcase_06 AC 37 ms
11,200 KB
testcase_07 AC 37 ms
11,260 KB
testcase_08 AC 36 ms
11,332 KB
testcase_09 AC 35 ms
11,448 KB
testcase_10 AC 37 ms
11,284 KB
testcase_11 AC 36 ms
11,188 KB
testcase_12 AC 35 ms
11,424 KB
testcase_13 AC 35 ms
11,280 KB
testcase_14 AC 36 ms
11,468 KB
testcase_15 AC 35 ms
11,348 KB
testcase_16 AC 35 ms
11,312 KB
testcase_17 AC 35 ms
11,224 KB
testcase_18 AC 34 ms
11,232 KB
testcase_19 AC 34 ms
11,308 KB
testcase_20 AC 34 ms
11,256 KB
testcase_21 AC 34 ms
11,224 KB
testcase_22 AC 34 ms
11,252 KB
testcase_23 AC 36 ms
11,180 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use bigint;
($a,$b,$c)=map{0+$_}glob<>;
$d=$c/($a-1+$b);
$r=$c%($a-1+$b);
$r=$a if $r>$a-1;
print$d*$a+$r;
0