結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-13 17:42:55 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 351 bytes |
| コンパイル時間 | 2,084 ms |
| コンパイル使用メモリ | 73,816 KB |
| 実行使用メモリ | 71,448 KB |
| 最終ジャッジ日時 | 2024-11-29 20:56:58 |
| 合計ジャッジ時間 | 6,050 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
ソースコード
import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int n = sc.nextInt();
long max = 0;
long mod = 1000000007;
for (int i=0; i<n; i++) {
long leng = sc.nextLong();
long num = sc.nextLong();
max += ((leng+1)/2*num%mod)%mod;
}
System.out.println(max);
}
}
Tsukasa_Type