結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー eitahoeitaho
提出日時 2015-03-27 16:26:09
言語 C#(csc)
(csc 3.9.0)
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 894 bytes
コンパイル時間 2,140 ms
コンパイル使用メモリ 101,920 KB
実行使用メモリ 133,800 KB
最終ジャッジ日時 2023-09-11 10:44:08
合計ジャッジ時間 8,490 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 MLE -
testcase_02 MLE -
testcase_03 MLE -
testcase_04 MLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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 Size1 = (int)20000, Size2 = (int)1000;
    static readonly Random random = new Random(0);

    int[][] A = new int[Size1][];

    public void Solve()
    {
        for (int i = 0; i < A.Length; i++) A[i] = new int[Size2];
        DoSomething();
        for (int i = 0; i < A.Length; i++) Array.Clear(A[i], 0, A[i].Length);
        DoSomething();
        Console.WriteLine(0);
    }

    public bool DoSomething()
    {
        for (int r = 0; r < A.Length; r++)
            for (int c = 0; c < A[r].Length; c++)
                A[r][c] = random.Next();
        return A[random.Next(Size1)][random.Next(Size2)] == 0;
    }

}


class Entry { static void Main() { new Program().Solve(); } }
0