結果
| 問題 | No.250 atetubouのzetubou |
| コンテスト | |
| ユーザー |
takakin
|
| 提出日時 | 2020-05-25 22:28:27 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 814 ms / 5,000 ms |
| コード長 | 376 bytes |
| 記録 | |
| コンパイル時間 | 508 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-30 08:42:56 |
| 合計ジャッジ時間 | 9,166 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")
takakin