結果
| 問題 |
No.9005 実行時間/使用メモリテスト(テスト用)
|
| ユーザー |
|
| 提出日時 | 2017-06-15 19:37:09 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 515 bytes |
| コンパイル時間 | 668 ms |
| コンパイル使用メモリ | 93,636 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-12 20:11:05 |
| 合計ジャッジ時間 | 23,870 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 5 |
ソースコード
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");
}
}