結果

問題 No.146 試験監督(1)
ユーザー Pump0129Pump0129
提出日時 2018-03-27 23:10:38
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 563 bytes
コンパイル時間 1,878 ms
コンパイル使用メモリ 72,304 KB
実行使用メモリ 68,380 KB
最終ジャッジ日時 2023-09-07 19:10:40
合計ジャッジ時間 5,548 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package net.ipipip0129.yukicoder.no146;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int cnt = Integer.parseInt(scan.nextLine());

        long capacity = 0;

        for (int i = 0; i < cnt; i++) {
            String[] data = scan.nextLine().split(" ");

            capacity += Math.ceil((((double) Long.parseLong(data[0]))/2)) * Long.parseLong(data[1]) % (Math.pow(10, 9) + 7);
        }

        System.out.println(capacity);
    }
}
0