結果
| 問題 |
No.250 atetubouのzetubou
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-08-17 00:35:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 775 bytes |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 17,568 KB |
| 最終ジャッジ日時 | 2024-07-18 09:55:40 |
| 合計ジャッジ時間 | 12,523 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | TLE * 1 -- * 19 |
ソースコード
#coding=UTF-8
#数学的に煮詰めないと間に合わなさそうだな
Q=int(input())
for idx in range(0,Q,1):
mojir=input()
hyo=mojir.split(' ')
Depth=int(hyo[0])#1500重ループとかZETUBOUでしょ
width=int(hyo[1])
Timeslimit=int(hyo[2])
#あれか、n個の箱の中に合計w個のミカン入れる話か
#nHrつかうやつ (D-1+w)C(w)でいいか
sisan=1
# print(list(range(Depth-1+width,Depth-1,-1)))
for idy in range(Depth-1+width,Depth-1,-1):
sisan=sisan*idy
for idy in range(width,0,-1):
sisan=sisan//idy
if sisan>Timeslimit:
# print('{0} > T={1}'.format(sisan,Timeslimit))
print('ZETUBOU')
else:
# print('{0} <= T={1}'.format(sisan,Timeslimit))
print('AC')