結果

問題 No.146 試験監督(1)
ユーザー k_kadorak_kadora
提出日時 2015-06-11 00:00:47
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 440 bytes
コンパイル時間 3,351 ms
コンパイル使用メモリ 73,156 KB
実行使用メモリ 68,204 KB
最終ジャッジ日時 2023-09-20 20:41:17
合計ジャッジ時間 7,362 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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);
	}
}
0