結果

問題 No.250 atetubouのzetubou
ユーザー tabataba
提出日時 2016-04-15 06:24:12
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 1,727 ms / 5,000 ms
コード長 223 bytes
コンパイル時間 1,121 ms
コンパイル使用メモリ 76,592 KB
実行使用メモリ 84,636 KB
最終ジャッジ日時 2024-04-15 01:45:03
合計ジャッジ時間 23,853 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,099 ms
82,876 KB
testcase_01 AC 319 ms
79,280 KB
testcase_02 AC 1,510 ms
82,772 KB
testcase_03 AC 1,727 ms
84,212 KB
testcase_04 AC 1,502 ms
83,476 KB
testcase_05 AC 1,626 ms
83,444 KB
testcase_06 AC 1,247 ms
82,332 KB
testcase_07 AC 780 ms
82,364 KB
testcase_08 AC 1,442 ms
82,464 KB
testcase_09 AC 1,201 ms
82,868 KB
testcase_10 AC 1,545 ms
83,768 KB
testcase_11 AC 1,053 ms
84,636 KB
testcase_12 AC 1,383 ms
82,196 KB
testcase_13 AC 846 ms
80,936 KB
testcase_14 AC 103 ms
77,100 KB
testcase_15 AC 769 ms
84,148 KB
testcase_16 AC 706 ms
82,320 KB
testcase_17 AC 760 ms
83,080 KB
testcase_18 AC 709 ms
82,696 KB
testcase_19 AC 701 ms
82,696 KB
testcase_20 AC 72 ms
75,660 KB
testcase_21 AC 72 ms
75,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n=input()
q=[map(int,raw_input().split())for i in[0]*n]
for i in q:
	x=math.factorial(i[1]+i[0]-1)/(math.factorial(i[0]-1)*math.factorial((i[1]+i[0]-1)-(i[0]-1)))
	if x<=i[2]:
		print"AC"
	else:
		print"ZETUBOU"
0