結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-27 22:49:15 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 537 bytes |
| コンパイル時間 | 2,164 ms |
| コンパイル使用メモリ | 78,592 KB |
| 実行使用メモリ | 54,136 KB |
| 最終ジャッジ日時 | 2024-06-25 12:56:22 |
| 合計ジャッジ時間 | 3,640 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 3 |
ソースコード
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 = scan.nextInt();
long capacity = 0;
for (int i = 0; i < cnt; i++) {
int chair = scan.nextInt();
int desk = scan.nextInt();
capacity += Math.ceil((double) chair / 2) * desk;
}
System.out.println((int) (capacity % (Math.pow(10, 9) + 7)));
}
}