結果
問題 |
No.250 atetubouのzetubou
|
ユーザー |
![]() |
提出日時 | 2021-04-15 01:11:29 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 414 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 82,692 KB |
実行使用メモリ | 79,060 KB |
最終ジャッジ日時 | 2024-06-30 23:38:24 |
合計ジャッジ時間 | 37,652 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 2 WA * 18 |
ソースコード
import sys import io, os input = io.BytesIO(os.read(0,os.fstat(0).st_size)).readline q = int(input()) for _ in range(q): d, x, t = map(int, input().split()) if d == 1: c = 1 else: c = 1 for i in range(x, x+d): c *= i r = 1 for j in range(1, d): r *= j c //= r if c > t: print('ZETUBOU') else: print('AC')