結果

問題 No.250 atetubouのzetubou
ユーザー kuuso1kuuso1
提出日時 2015-07-24 23:56:02
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 1,212 bytes
コンパイル時間 3,033 ms
コンパイル使用メモリ 102,968 KB
実行使用メモリ 25,212 KB
最終ジャッジ日時 2023-09-23 00:08:55
合計ジャッジ時間 20,371 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 748 ms
21,048 KB
testcase_01 AC 177 ms
23,124 KB
testcase_02 AC 1,115 ms
23,080 KB
testcase_03 AC 1,255 ms
23,204 KB
testcase_04 AC 1,097 ms
25,112 KB
testcase_05 AC 1,135 ms
23,168 KB
testcase_06 AC 889 ms
21,184 KB
testcase_07 AC 459 ms
23,036 KB
testcase_08 AC 1,045 ms
23,236 KB
testcase_09 AC 830 ms
23,064 KB
testcase_10 AC 1,122 ms
23,152 KB
testcase_11 AC 696 ms
21,088 KB
testcase_12 AC 1,032 ms
25,156 KB
testcase_13 AC 590 ms
20,948 KB
testcase_14 AC 62 ms
20,940 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 58 ms
21,104 KB
testcase_21 AC 58 ms
23,120 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.Numerics;

class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){
		for(;Q>0;Q--){
			var d=rla();
			int D=(int)d[0];
			int X=(int)d[1];
			double T=(double)d[2];
			double b=0;
			for(int i=1;i<=X+D-1;i++){
				b+=Math.Log(i);
			}
			for(int i=1;i<=X;i++){
				b-=Math.Log(i);
			}
			for(int i=1;i<=D-1;i++){
				b-=Math.Log(i);
			}
			double eps=1e-9;
			double logT=Math.Log(T);
			Console.WriteLine(b>eps+logT?"ZETUBOU":"AC");
		
		
		}
		
	}
	int Q;
	public Sol(){
		Q=ri();
	}




	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(){return Console.ReadLine().Split(' ');}
	static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));}
	static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));}
	static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));}
}
0