結果
| 問題 | No.146 試験監督(1) |
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2018-09-21 07:40:23 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
MLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 548 bytes |
| 記録 | |
| コンパイル時間 | 622 ms |
| コンパイル使用メモリ | 114,464 KB |
| 実行使用メモリ | 144,100 KB |
| 最終ジャッジ日時 | 2026-04-02 00:26:24 |
| 合計ジャッジ時間 | 3,499 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 MLE * 1 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Numerics;
public class Hello
{
private const int MOD = 1000000007;
public static void Main()
{
BigInteger ans = 0;
var n = int.Parse(Console.ReadLine().Trim());
for (int i = 0; i < n; i++)
{
string[] line = Console.ReadLine().Trim().Split(' ');
BigInteger c = BigInteger.Parse(line[0]);
BigInteger d = BigInteger.Parse(line[1]);
ans += ((c + 1) / 2L) * d;
}
ans %= MOD;
Console.WriteLine(ans);
}
}
bluemegane