結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
15,160 KB
testcase_01 AC 81 ms
15,360 KB
testcase_02 AC 109 ms
15,264 KB
testcase_03 AC 113 ms
15,472 KB
testcase_04 AC 108 ms
15,168 KB
testcase_05 AC 110 ms
15,272 KB
testcase_06 AC 104 ms
15,476 KB
testcase_07 AC 91 ms
15,300 KB
testcase_08 AC 106 ms
15,356 KB
testcase_09 AC 101 ms
15,296 KB
testcase_10 AC 110 ms
15,292 KB
testcase_11 AC 98 ms
15,340 KB
testcase_12 AC 107 ms
15,336 KB
testcase_13 AC 94 ms
15,256 KB
testcase_14 AC 78 ms
15,236 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 79 ms
15,216 KB
testcase_21 AC 78 ms
15,140 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=n-k 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