結果
| 問題 |
No.146 試験監督(1)
|
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-13 17:42:11 |
| 言語 | Java (openjdk 23) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 347 bytes |
| コンパイル時間 | 2,766 ms |
| コンパイル使用メモリ | 74,168 KB |
| 実行使用メモリ | 69,496 KB |
| 最終ジャッジ日時 | 2024-11-29 20:48:25 |
| 合計ジャッジ時間 | 7,485 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 TLE * 2 |
ソースコード
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;
}
System.out.println(max);
}
}
Tsukasa_Type