結果

問題 No.250 atetubouのzetubou
ユーザー cielciel
提出日時 2015-07-24 22:41:18
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 11,400 KB
実行使用メモリ 15,476 KB
最終ジャッジ日時 2023-09-22 22:34:13
合計ジャッジ時間 3,378 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
15,368 KB
testcase_01 AC 87 ms
15,232 KB
testcase_02 AC 110 ms
15,364 KB
testcase_03 AC 113 ms
15,416 KB
testcase_04 AC 112 ms
15,420 KB
testcase_05 AC 108 ms
15,416 KB
testcase_06 AC 101 ms
15,376 KB
testcase_07 AC 94 ms
15,384 KB
testcase_08 AC 106 ms
15,260 KB
testcase_09 AC 101 ms
15,276 KB
testcase_10 AC 108 ms
15,384 KB
testcase_11 AC 98 ms
15,264 KB
testcase_12 AC 104 ms
15,464 KB
testcase_13 AC 94 ms
15,272 KB
testcase_14 AC 78 ms
15,260 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 77 ms
15,140 KB
testcase_21 AC 77 ms
15,272 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/usr/bin/ruby
gets.to_i.times{
	d,x,t=gets.split.map(&:to_i)

	n,k=[d+x-1,d-1]
	k=[k,n-k].min # if k>n/2
	r=1
	if k.times{|i|
		r=r*(n-i)/(i+1)
		break if r>t
	}
		puts :AC
	else
		puts :ZETUBOU
	end
}
0