結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-06-11 00:02:19 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 440 bytes |
| コンパイル時間 | 3,152 ms |
| コンパイル使用メモリ | 74,720 KB |
| 実行使用メモリ | 67,000 KB |
| 最終ジャッジ日時 | 2024-07-06 15:29:33 |
| 合計ジャッジ時間 | 6,381 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
ソースコード
import java.util.Scanner;
public class Test{
public static void main(String[] arg){
Scanner sc = new Scanner(System.in);
int n;
n = Integer.parseInt(sc.next());
Long res = (long)0,tempc,tempd;
for(int i = 0;i<n;i++){
tempc = (Long.parseLong(sc.next())+1 / 2) % 1000000007;
tempd = Long.parseLong(sc.next()) % 1000000007;
res += ( tempc * tempd )% 1000000007;
}
res = res % 1000000007;
System.out.println(res);
}
}