結果

問題 No.250 atetubouのzetubou
ユーザー pluto77pluto77
提出日時 2016-04-22 15:02:43
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 811 ms / 5,000 ms
コード長 350 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 76,828 KB
実行使用メモリ 86,284 KB
最終ジャッジ日時 2024-04-15 04:12:51
合計ジャッジ時間 11,458 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 512 ms
85,288 KB
testcase_01 AC 168 ms
83,984 KB
testcase_02 AC 722 ms
86,284 KB
testcase_03 AC 811 ms
85,624 KB
testcase_04 AC 746 ms
86,068 KB
testcase_05 AC 747 ms
85,416 KB
testcase_06 AC 599 ms
85,764 KB
testcase_07 AC 351 ms
85,000 KB
testcase_08 AC 688 ms
85,568 KB
testcase_09 AC 548 ms
85,276 KB
testcase_10 AC 734 ms
86,184 KB
testcase_11 AC 484 ms
85,500 KB
testcase_12 AC 678 ms
85,396 KB
testcase_13 AC 415 ms
85,404 KB
testcase_14 AC 78 ms
79,412 KB
testcase_15 AC 152 ms
84,404 KB
testcase_16 AC 155 ms
84,512 KB
testcase_17 AC 155 ms
84,484 KB
testcase_18 AC 156 ms
84,264 KB
testcase_19 AC 153 ms
84,396 KB
testcase_20 AC 78 ms
78,996 KB
testcase_21 AC 79 ms
79,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
#yuki_250

fact=[1 for i in xrange(3000)]
for i in xrange(1,3000):
 fact[i]=i*fact[i-1]
 
q=int(raw_input())
res=[]
for i in xrange(q):
 d,x,t=map(int,raw_input().split())
 n=d+x-1
 if n/2>x:
  r=x
 else:
  r=n-x
 if fact[n]/fact[r]/fact[n-r]<=t:
  res.append("AC")
 else:
  res.append("ZETUBOU")
  
for i in xrange(q):
 print res[i]
0