結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
kiridaruma
|
| 提出日時 | 2016-11-10 13:29:19 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 301 bytes |
| コンパイル時間 | 904 ms |
| コンパイル使用メモリ | 102,888 KB |
| 実行使用メモリ | 6,816 KB |
| 最終ジャッジ日時 | 2024-06-12 05:01:13 |
| 合計ジャッジ時間 | 1,619 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 3 |
コンパイルメッセージ
Main.d(9): Warning: `long += float` is performing truncating conversion
ソースコード
import std.stdio, std.conv, std.string;
import std.math, std.algorithm, std.array;
void main(){
int n = readln.strip.to!int;
long sum = 0;
foreach(i;0..n){
auto input = readln.strip.split.map!(to!int).array;
sum += ceil(input[0] / 2f) * input[1];
}
writeln(sum);
}
kiridaruma