結果

問題 No.538 N.G.S.
ユーザー motimoti
提出日時 2018-05-30 02:17:59
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 161 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 11,392 KB
実行使用メモリ 11,348 KB
最終ジャッジ日時 2023-09-12 20:33:38
合計ジャッジ時間 4,414 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
11,052 KB
testcase_01 AC 41 ms
11,132 KB
testcase_02 AC 41 ms
11,056 KB
testcase_03 AC 42 ms
11,328 KB
testcase_04 AC 41 ms
11,084 KB
testcase_05 AC 41 ms
11,280 KB
testcase_06 AC 42 ms
11,192 KB
testcase_07 AC 42 ms
11,304 KB
testcase_08 AC 42 ms
11,088 KB
testcase_09 AC 42 ms
11,176 KB
testcase_10 AC 41 ms
11,076 KB
testcase_11 AC 41 ms
11,052 KB
testcase_12 AC 41 ms
11,348 KB
testcase_13 AC 42 ms
11,144 KB
testcase_14 AC 41 ms
11,260 KB
testcase_15 AC 42 ms
11,120 KB
testcase_16 AC 42 ms
11,292 KB
testcase_17 AC 42 ms
11,124 KB
testcase_18 WA -
testcase_19 AC 42 ms
11,204 KB
testcase_20 AC 42 ms
11,064 KB
testcase_21 AC 43 ms
11,080 KB
testcase_22 AC 42 ms
11,076 KB
testcase_23 AC 42 ms
11,284 KB
testcase_24 AC 42 ms
11,316 KB
testcase_25 AC 42 ms
11,288 KB
testcase_26 AC 41 ms
11,248 KB
testcase_27 AC 41 ms
11,280 KB
testcase_28 AC 42 ms
11,040 KB
testcase_29 AC 41 ms
11,140 KB
testcase_30 AC 42 ms
11,052 KB
testcase_31 AC 45 ms
11,276 KB
testcase_32 AC 43 ms
11,284 KB
testcase_33 AC 41 ms
11,188 KB
testcase_34 AC 41 ms
11,128 KB
testcase_35 AC 43 ms
11,144 KB
testcase_36 AC 42 ms
11,228 KB
testcase_37 AC 42 ms
11,252 KB
testcase_38 AC 41 ms
11,200 KB
testcase_39 AC 42 ms
11,228 KB
testcase_40 AC 41 ms
11,312 KB
testcase_41 AC 42 ms
11,128 KB
testcase_42 AC 41 ms
11,096 KB
testcase_43 AC 41 ms
11,068 KB
testcase_44 AC 41 ms
11,076 KB
testcase_45 AC 40 ms
11,052 KB
testcase_46 AC 42 ms
11,148 KB
testcase_47 AC 41 ms
11,052 KB
testcase_48 AC 40 ms
11,124 KB
testcase_49 AC 42 ms
11,084 KB
testcase_50 AC 41 ms
11,196 KB
testcase_51 AC 41 ms
11,176 KB
testcase_52 AC 40 ms
11,052 KB
testcase_53 AC 41 ms
11,128 KB
testcase_54 AC 40 ms
11,048 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

#!/usr/bin/env perl

use bigint;

my ($b1, $b2, $b3) = split / /, <>; chomp $b3;
my $r = ($b3 - $b2) / ($b2 - $b1);
my $d = $b3 - $r * $b2;
print $r * $b3 + $d;
0