結果
| 問題 |
No.9005 実行時間/使用メモリテスト(テスト用)
|
| ユーザー |
eitaho
|
| 提出日時 | 2015-03-27 16:16:43 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 896 ms / 3,000 ms |
| コード長 | 690 bytes |
| コンパイル時間 | 811 ms |
| コンパイル使用メモリ | 103,040 KB |
| 実行使用メモリ | 95,616 KB |
| 最終ジャッジ日時 | 2024-06-29 01:25:16 |
| 合計ジャッジ時間 | 6,623 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Diagnostics;
using Enu = System.Linq.Enumerable;
class Program
{
static readonly int Size = (int)2e7;
static readonly Random random = new Random(0);
int[] A = new int[Size];
public void Solve()
{
DoSomething();
for (int i = 0; i < Size; i++) A[i] = 0;
DoSomething();
Console.WriteLine(0);
}
public bool DoSomething()
{
for (int i = 0; i < Size; i++)
A[i] = random.Next();
return A[random.Next(Size)] == 0;
}
}
class Entry { static void Main() { new Program().Solve(); } }
eitaho