結果
問題 | No.146 試験監督(1) |
ユーザー | kou6839 |
提出日時 | 2015-02-11 00:54:40 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 402 bytes |
コンパイル時間 | 2,581 ms |
コンパイル使用メモリ | 71,628 KB |
実行使用メモリ | 65,980 KB |
最終ジャッジ日時 | 2023-09-05 23:07:03 |
合計ジャッジ時間 | 6,357 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
ソースコード
import java.math.*; import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long ans = 0; for(int i=0;i<n;i++){ long a =sc.nextLong(); long b = sc.nextLong(); long temp =(a+1)/2*b%1000000007; ans+=temp; } System.out.println(ans%1000000007); } }