結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー nanaenanae
提出日時 2017-06-15 19:37:09
言語 D
(dmd 2.106.1)
結果
TLE  
実行時間 -
コード長 515 bytes
コンパイル時間 658 ms
コンパイル使用メモリ 77,424 KB
実行使用メモリ 11,388 KB
最終ジャッジ日時 2023-09-03 14:30:00
合計ジャッジ時間 9,139 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import std.stdio, std.string, std.conv, std.algorithm;
import std.range, std.array, std.container;

immutable int mod = 10^^9 + 7;

void main() {
    int ans;
    int n = 10^^9;

    foreach (i ; 0 .. n) {
        (ans += i) %= mod;
    }

    writeln(0);
}


void readInput(T...)(ref T args) {
    string[] line = readln.split;
    foreach (ref arg ; args) {
        arg = line.front.to!(typeof(arg));
        line.popFront;
    }
    if (!line.empty) {
        throw new Exception("args num < input num");
    }
}
0