結果
問題 |
No.146 試験監督(1)
|
ユーザー |
![]() |
提出日時 | 2015-02-11 00:54:40 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 402 bytes |
コンパイル時間 | 2,229 ms |
コンパイル使用メモリ | 74,208 KB |
実行使用メモリ | 69,600 KB |
最終ジャッジ日時 | 2024-06-23 18:26:48 |
合計ジャッジ時間 | 6,600 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 3 |
ソースコード
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); } }