結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-13 17:41:26 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 355 bytes |
| コンパイル時間 | 1,952 ms |
| コンパイル使用メモリ | 73,612 KB |
| 実行使用メモリ | 58,096 KB |
| 最終ジャッジ日時 | 2024-11-29 20:45:27 |
| 合計ジャッジ時間 | 6,437 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()%mod;
long num = sc.nextLong()%mod;
max += ((leng+1)/2*num)%mod;
}
System.out.println(max);
}
}
Tsukasa_Type