結果

問題 No.250 atetubouのzetubou
ユーザー mbanmban
提出日時 2017-01-14 02:50:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 140 ms / 5,000 ms
コード長 2,007 bytes
コンパイル時間 2,980 ms
コンパイル使用メモリ 98,488 KB
実行使用メモリ 20,968 KB
最終ジャッジ日時 2023-08-23 10:27:27
合計ジャッジ時間 5,865 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
20,632 KB
testcase_01 AC 62 ms
20,968 KB
testcase_02 AC 86 ms
16,680 KB
testcase_03 AC 89 ms
17,136 KB
testcase_04 AC 86 ms
16,692 KB
testcase_05 AC 87 ms
16,776 KB
testcase_06 AC 80 ms
16,376 KB
testcase_07 AC 69 ms
15,428 KB
testcase_08 AC 87 ms
16,672 KB
testcase_09 AC 78 ms
16,112 KB
testcase_10 AC 88 ms
16,844 KB
testcase_11 AC 76 ms
16,032 KB
testcase_12 AC 84 ms
16,568 KB
testcase_13 AC 73 ms
15,824 KB
testcase_14 AC 59 ms
14,648 KB
testcase_15 AC 138 ms
16,796 KB
testcase_16 AC 138 ms
16,824 KB
testcase_17 AC 139 ms
16,860 KB
testcase_18 AC 140 ms
16,836 KB
testcase_19 AC 139 ms
16,632 KB
testcase_20 AC 58 ms
14,708 KB
testcase_21 AC 59 ms
14,636 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
using System.IO;

class Program
{ 
    static private void Main(string[]args)
    {
        Magatro m = new Magatro();
        m.Scan();
        m.Solve();
    }
}

public class Scanner
{
    private StreamReader Sr;
    private string[] S;
    private int Index;

    private const char Separator=' ';

    public Scanner()
    {
        Index = 0;
        S = new string[0];
        Sr = new StreamReader(Console.OpenStandardInput());
    }

    private string[] Line()
    {
        return Sr.ReadLine().Split(Separator);
    }

    public string Next()
    {
        string result;
        if (Index >= S.Length)
        {
            S = Line();
            Index = 0;
        }
        result = S[Index];
        Index++;
        return result;
    }
    public int NextInt()
    {
        return int.Parse(Next());
    }
    public double NextDouble()
    {
        return double.Parse(Next());
    }
    public long NextLong()
    {
        return long.Parse(Next());
    }
    public bool ScanToEnd(ref string s)
    {
        if (Sr.EndOfStream)
        {
            return false;
        }
        else
        {
            s = Sr.ReadLine();
            return true;
        }
    }
}

public class Magatro
{
    private Scanner Sc = new Scanner();
    private int Q;
    private long[] F = new long[1501];

    public void Scan()
    {
        Q = Sc.NextInt();
    }

    public void Solve()
    {
        for(int i = 0; i < Q; i++)
        {
            Anser();
        }
    }
    private void Anser()
    {
        int d = Sc.NextInt();
        int x = Sc.NextInt();
        long t = Sc.NextLong();
        long s = 1;
        for(int i = 1; i < d; i++)
        {
            s = s * (x + i) / i;
            if (s > t) break;
        }
        Console.WriteLine(s <= t ? "AC" : "ZETUBOU");
    }
}
0