結果
問題 | No.250 atetubouのzetubou |
ユーザー |
|
提出日時 | 2016-04-22 15:02:43 |
言語 | PyPy2 (7.3.15) |
結果 |
AC
|
実行時間 | 754 ms / 5,000 ms |
コード長 | 350 bytes |
コンパイル時間 | 475 ms |
コンパイル使用メモリ | 76,288 KB |
実行使用メモリ | 86,136 KB |
最終ジャッジ日時 | 2024-10-04 15:05:35 |
合計ジャッジ時間 | 11,331 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
# coding: utf-8#yuki_250fact=[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-1if n/2>x:r=xelse:r=n-xif fact[n]/fact[r]/fact[n-r]<=t:res.append("AC")else:res.append("ZETUBOU")for i in xrange(q):print res[i]