結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー なおなお
提出日時 2014-11-25 19:08:28
言語 Perl
(5.38.2)
結果
AC  
実行時間 59 ms / 5,000 ms
コード長 212 bytes
コンパイル時間 547 ms
コンパイル使用メモリ 13,944 KB
実行使用メモリ 14,008 KB
最終ジャッジ日時 2023-09-29 22:22:12
合計ジャッジ時間 3,527 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
13,776 KB
testcase_01 AC 51 ms
13,896 KB
testcase_02 AC 52 ms
13,908 KB
testcase_03 AC 51 ms
13,908 KB
testcase_04 AC 56 ms
13,828 KB
testcase_05 AC 53 ms
13,788 KB
testcase_06 AC 54 ms
13,700 KB
testcase_07 AC 52 ms
13,716 KB
testcase_08 AC 56 ms
13,780 KB
testcase_09 AC 59 ms
13,800 KB
testcase_10 AC 50 ms
13,792 KB
testcase_11 AC 54 ms
13,948 KB
testcase_12 AC 52 ms
14,008 KB
testcase_13 AC 50 ms
13,816 KB
testcase_14 AC 49 ms
13,912 KB
testcase_15 AC 55 ms
13,976 KB
testcase_16 AC 52 ms
13,788 KB
testcase_17 AC 50 ms
13,984 KB
testcase_18 AC 53 ms
13,828 KB
testcase_19 AC 50 ms
13,800 KB
testcase_20 AC 48 ms
13,824 KB
testcase_21 AC 49 ms
13,904 KB
testcase_22 AC 51 ms
13,968 KB
testcase_23 AC 57 ms
13,776 KB
testcase_24 AC 54 ms
13,936 KB
testcase_25 AC 49 ms
13,956 KB
testcase_26 AC 51 ms
13,828 KB
testcase_27 AC 48 ms
13,940 KB
testcase_28 AC 52 ms
13,952 KB
testcase_29 AC 53 ms
13,772 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

#!/usr/bin/perl
use strict;
use Math::BigFloat;
Math::BigFloat->accuracy(30);

my $N = <>;
my $sum = 0;
for(1..$N){
    $sum += Math::BigFloat->new(scalar <>);
}
print $sum->bfround(-10)->bstr(),"\n";
0