結果
問題 |
No.81 すべて足すだけの簡単なお仕事です。
|
ユーザー |
|
提出日時 | 2015-06-28 23:08:02 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 126 ms / 5,000 ms |
コード長 | 389 bytes |
コンパイル時間 | 2,367 ms |
コンパイル使用メモリ | 74,796 KB |
実行使用メモリ | 54,672 KB |
最終ジャッジ日時 | 2024-07-22 16:29:51 |
合計ジャッジ時間 | 6,091 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); BigDecimal ans = new BigDecimal("0"); for(int i=0;i<n;i++){ String d =sc.next(); ans=ans.add(new BigDecimal(d)); } System.out.printf("%.10f",ans); } }