結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
kiridaruma
|
| 提出日時 | 2016-11-10 13:26:47 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 302 bytes |
| コンパイル時間 | 796 ms |
| コンパイル使用メモリ | 103,112 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-12 05:00:47 |
| 合計ジャッジ時間 | 1,383 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 3 |
コンパイルメッセージ
Main.d(9): Warning: `long += double` 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] / 2.0) * input[1];
}
writeln(sum);
}
kiridaruma