結果

問題 No.250 atetubouのzetubou
ユーザー TawaraTawara
提出日時 2015-08-01 13:28:49
言語 Python2
(2.7.18)
結果
AC  
実行時間 1,195 ms / 5,000 ms
コード長 218 bytes
コンパイル時間 496 ms
コンパイル使用メモリ 6,744 KB
実行使用メモリ 11,692 KB
最終ジャッジ日時 2023-09-25 00:07:05
合計ジャッジ時間 14,417 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 690 ms
11,508 KB
testcase_01 AC 133 ms
11,672 KB
testcase_02 AC 1,058 ms
11,500 KB
testcase_03 AC 1,195 ms
11,512 KB
testcase_04 AC 1,048 ms
11,620 KB
testcase_05 AC 1,081 ms
11,684 KB
testcase_06 AC 839 ms
11,660 KB
testcase_07 AC 413 ms
11,512 KB
testcase_08 AC 987 ms
11,588 KB
testcase_09 AC 755 ms
11,624 KB
testcase_10 AC 1,069 ms
11,504 KB
testcase_11 AC 648 ms
11,656 KB
testcase_12 AC 970 ms
11,672 KB
testcase_13 AC 541 ms
11,692 KB
testcase_14 AC 25 ms
11,544 KB
testcase_15 AC 84 ms
11,632 KB
testcase_16 AC 84 ms
11,588 KB
testcase_17 AC 85 ms
11,624 KB
testcase_18 AC 85 ms
11,580 KB
testcase_19 AC 84 ms
11,604 KB
testcase_20 AC 19 ms
11,548 KB
testcase_21 AC 19 ms
11,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = 3000
Q = int(raw_input())
dp = [1 for i in xrange(N)]
for i in xrange(2,N):
	dp[i] = i*dp[i-1]
for i in xrange(Q):
	D,X,T = map(int,raw_input().split(" "))
	print "AC" if dp[X+D-1]/dp[X]/dp[D-1] <= T else "ZETUBOU"
0