結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
kou6839
|
| 提出日時 | 2015-02-11 01:24:18 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 387 bytes |
| コンパイル時間 | 1,851 ms |
| コンパイル使用メモリ | 74,488 KB |
| 実行使用メモリ | 68,772 KB |
| 最終ジャッジ日時 | 2024-06-23 18:28:07 |
| 合計ジャッジ時間 | 6,047 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 2 TLE * 1 |
ソースコード
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()+1)/2%1000000007;
long b = sc.nextLong();
ans=(ans+(a+1)/2*b)%1000000007;
}
System.out.println(ans);
}
}
kou6839