結果
| 問題 |
No.81 すべて足すだけの簡単なお仕事です。
|
| コンテスト | |
| ユーザー |
kaiyori_lab
|
| 提出日時 | 2014-11-30 01:13:08 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 289 bytes |
| コンパイル時間 | 2,609 ms |
| コンパイル使用メモリ | 150,144 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-12 01:42:35 |
| 合計ジャッジ時間 | 3,053 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 WA * 8 |
ソースコード
import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
//------------------
void main(){
auto n = readln.chomp.to!int;
real[] arr;
foreach(i; 0..n){ arr ~= readln.chomp.to!real; }
auto res = arr.reduce!((a, b) => a + b);
writefln("%1.10f", res);
}
kaiyori_lab