結果
問題 |
No.250 atetubouのzetubou
|
ユーザー |
![]() |
提出日時 | 2020-05-25 22:28:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 1,068 ms / 5,000 ms |
コード長 | 376 bytes |
コンパイル時間 | 205 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-13 02:16:44 |
合計ジャッジ時間 | 7,515 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() q=int(input()) for _ in range(q): d,x,t=map(int,input().split()) res=1 if d==1: if t==0: print("ZETUBOU") else: print("AC") else: for i in range(1,d): res=(res*(x+i))//i if res>t: print("ZETUBOU") break else: continue else: print("AC")