結果
| 問題 | 
                            No.146 試験監督(1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kiridaruma
                         | 
                    
| 提出日時 | 2016-11-10 13:27:09 | 
| 言語 | D  (dmd 2.109.1)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 306 bytes | 
| コンパイル時間 | 827 ms | 
| コンパイル使用メモリ | 103,352 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-12 05:00:49 | 
| 合計ジャッジ時間 | 1,372 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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(int i;0..n){
        auto input = readln.strip.split.map!(to!int).array;
        sum += ceil(input[0] / 2.0) * input[1];
    }
    writeln(sum);
}
            
            
            
        
            
kiridaruma