結果

問題 No.146 試験監督(1)
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-09-25 21:12:34
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 399 bytes
コンパイル時間 1,507 ms
コンパイル使用メモリ 111,236 KB
実行使用メモリ 26,892 KB
最終ジャッジ日時 2024-04-15 18:35:59
合計ジャッジ時間 1,883 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

class No146{
    static void Main(){
        var count=Int32.Parse(Console.ReadLine());
        var ans=0;
        for(int i=0;i<count;++i){
            var chair=Console.ReadLine().Split(' ').Select(x=>Int32.Parse(x)).ToArray();
            var p=chair[0]%2==0?chair[0]/2:chair[0]/2+1;
            ans+=p*chair[1];
        }
        Console.WriteLine(ans);
    }
}
0