結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
nak2yoshi
|
| 提出日時 | 2016-02-22 00:22:41 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 373 bytes |
| コンパイル時間 | 827 ms |
| コンパイル使用メモリ | 104,704 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-12 02:58:36 |
| 合計ジャッジ時間 | 1,963 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
ソースコード
import std.stdio,
std.conv,
std.string,
std.range,
std.math,
std.algorithm;
void main()
{
auto N = readln.strip.to!int;
long[] C, D;
foreach (_; 0 .. N)
{
auto input = readln.split.to!(long[]);
C ~= input[0];
D ~= input[1];
}
0UL.reduce!((a,b) => a+(C[b]+1)/2*D[b])(0.iota(N)).writeln;
}
nak2yoshi