結果
| 問題 | No.250 atetubouのzetubou | 
| コンテスト | |
| ユーザー |  Nagisa | 
| 提出日時 | 2015-10-30 22:34:45 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2,636 ms / 5,000 ms | 
| コード長 | 277 bytes | 
| コンパイル時間 | 275 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 11,008 KB | 
| 最終ジャッジ日時 | 2024-09-13 05:50:10 | 
| 合計ジャッジ時間 | 31,805 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 20 | 
ソースコード
from math import factorial
def combination(m,n):
    return factorial(m)//(factorial(m-n)*factorial(n))
Q = int(input())
for n in range(Q):
    D, X, T = list(map(int, input().split()))
    if combination(X+D-1, D-1) > T:
        print("ZETUBOU")
    else:
        print("AC")
            
            
            
        