結果
問題 | No.146 試験監督(1) |
ユーザー | Pump0129 |
提出日時 | 2018-03-27 22:49:15 |
言語 | Java21 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 537 bytes |
コンパイル時間 | 2,071 ms |
コンパイル使用メモリ | 71,948 KB |
実行使用メモリ | 58,068 KB |
最終ジャッジ日時 | 2023-09-07 19:10:15 |
合計ジャッジ時間 | 3,374 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
ソースコード
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))); } }