結果

問題 No.250 atetubouのzetubou
ユーザー finefine
提出日時 2016-01-08 00:37:30
言語 Ruby
(3.3.0)
結果
AC  
実行時間 397 ms / 5,000 ms
コード長 258 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 11,508 KB
実行使用メモリ 22,240 KB
最終ジャッジ日時 2023-08-27 06:10:15
合計ジャッジ時間 6,894 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 265 ms
22,144 KB
testcase_01 AC 120 ms
21,496 KB
testcase_02 AC 357 ms
22,240 KB
testcase_03 AC 397 ms
22,108 KB
testcase_04 AC 359 ms
21,900 KB
testcase_05 AC 365 ms
22,204 KB
testcase_06 AC 301 ms
21,940 KB
testcase_07 AC 191 ms
21,988 KB
testcase_08 AC 339 ms
22,088 KB
testcase_09 AC 280 ms
22,036 KB
testcase_10 AC 361 ms
21,772 KB
testcase_11 AC 255 ms
21,912 KB
testcase_12 AC 339 ms
21,932 KB
testcase_13 AC 229 ms
22,088 KB
testcase_14 AC 92 ms
20,680 KB
testcase_15 AC 170 ms
21,152 KB
testcase_16 AC 172 ms
21,184 KB
testcase_17 AC 168 ms
21,076 KB
testcase_18 AC 165 ms
21,052 KB
testcase_19 AC 165 ms
21,180 KB
testcase_20 AC 91 ms
20,212 KB
testcase_21 AC 90 ms
20,484 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

kaijou = [1]
1.upto(2999){|i|
    kaijou.push(i * kaijou[i - 1])
    }

gets.to_i.times{
    d,x,t = gets.split.map(&:to_i)
    ans = kaijou[x + d - 1] / kaijou[d - 1] / kaijou[x]
    if ans > t
        puts "ZETUBOU"
    else
        puts "AC"
    end
    }
0