Hatena::Grouptopcoder

tsubosakaの日記

2009-03-08

TCO 09 Round 1 Medium

| 04:05

ネットで順序統計量とか調べると公式が載っているのでそれを実装しただけです。

public class KthProbableElement {
  double fact(int n){
    double res = 1.0;
    for(int i = 1 ; i <= n ; i++)
      res *= i;
    return res;
  }
  public double probability(int M, int lowerBound, int upperBound, int N, int K) {
    double res = 0.0;
    double pi = 1.0 * (N - lowerBound + 1) / (upperBound - lowerBound + 1);
    double pii = 1.0 * (N - lowerBound ) / (upperBound - lowerBound + 1);
    for(int k = K ; k <= M ; k++){
      double cmb = fact(M) / (fact(k) * fact(M - k)); 
      double r = Math.pow(pi , k) * Math.pow(1.0 - pi ,M - k);
      r -= Math.pow(pii , k) * Math.pow(1.0 - pii ,M - k);
      res += r * cmb;
    }
    return res;
  }
}

JospehmoilaJospehmoila2019/01/30 07:27buy cialis in mexico
cialis without a rx
buy cialis with dapoxetine online
cialis sin receta medica

best cialis online order
cialis original brand name sale
buy cialis online scams
cialis from canada with a prescription
https://stowe365.com/#Buy-Cialis-20-mg

JospehmoilaJospehmoila2019/01/30 16:30cialis thailand buy
typical cialis prescription
order cheap cialis
canadian pharmacy cialis 20mg

cialis super active 20mg pills
swiss medical cialis
cialis for women free sample
z 14 order cialis super active online
https://stowe365.com/#Buy-Cialis

JospehmoilaJospehmoila2019/01/31 01:32canadian brand label cialis
bay cialis fast shipping
cialis 20 mg effects
cialis for sale without prescription

buy cialis in nigeria
cialis purchace on line fast no rx
genuine brand name cialis
buy cialis soft tabs information
https://stowe365.com/#Buy-Cialis

JospehmoilaJospehmoila2019/01/31 11:59what is correct dosage for cialis
do broken cialis work
current price of cialis
cialis discount paris

cialis hearing loss
bootleg cialis
acquisto online cialis originale
rui products cialis review
https://stowe365.com/#Buy-Cialis

JospehmoilaJospehmoila2019/01/31 23:26real cialis canadian pharmacy
cialis tablets for sale
dove posso acquistare cialis online
best buy cialis online

cialis kanada
5mg daliy cialis reviews
high price of cialis
cialis experience
https://stowe365.com/#Buy-Cialis-20-mg

JospehmoilaJospehmoila2019/02/01 13:50cialis online.com
once a day cialis cheap
generic cialis 99cents
best place to buy cialis online reviews

get a prescription to buy brand cialis
cialis drug information
lloyds pharmacy cialis price
usa overnight pharmacy cialis
https://stowe365.com/#Buy-Cialis-20-mg

DavidtogDavidtog2019/02/02 23:43cialis online apotheke
cheap generic female cialis
<a href="http://kaivanrosendaal.com/">cialis vs viagra</a>
cialis 20 mg coupon
buy cialis chennai
<a href=http://kaivanrosendaal.com>cialis purchasing</a>
rite aid pharmacy cialis
online apotheke cialis kaufen
http://kaivanrosendaal.com/#Buy-Cheap-Cialis-Online

DavidtogDavidtog2019/02/03 08:52cialis tienda online
brand name cialis online
<a href="http://kaivanrosendaal.com">cialis from canada</a>
cialis_2.5_mg_online
selling cialis on craigslist
<a href=http://kaivanrosendaal.com/>cialis tadalafil</a>
cheap cialis extra strength
best place to buy cialis online yahoo
http://kaivanrosendaal.com/#cialis-canada

DavidtogDavidtog2019/02/03 23:29purchase cialis in south africa
men's health online cialis
<a href="http://kaivanrosendaal.com">cialis coupons printable</a>
cialis prescription dosage
cialis forums
<a href=http://kaivanrosendaal.com/>cialis generic availability</a>
is generic cialis legal
prescription cost for cialis
http://kaivanrosendaal.com/#Buy-Cheap-Cialis

DavidtogDavidtog2019/02/04 07:44cialis professional vs regular cialis
apotheke_cialis_schweiz
<a href="http://kaivanrosendaal.com/">Buy Cheap Cialis</a>
comprare il cialis online
cialis soft online kaufen
<a href=http://kaivanrosendaal.com/>what is cialis</a>
cialis effectiveness review
rayh health care cialis
http://kaivanrosendaal.com/#cialis-for-daily-use

DavidtogDavidtog2019/02/04 18:06import cialis
cialis no prescription montreal
<a href="http://kaivanrosendaal.com">cialis for daily use</a>
cialis commercial actor
buy cialis forum
<a href=http://kaivanrosendaal.com>cialis reviews</a>
cialis.60mg.sale
purchase cialis for daily use online
http://kaivanrosendaal.com/#200-cialis-coupon

DavidtogDavidtog2019/02/05 18:04costco price for cialis
cialis e-shops europe
<a href="http://kaivanrosendaal.com">Buy Cheap Cialis Online</a>
cialis von lilly
buy cialis with no perscription
<a href=http://kaivanrosendaal.com/>cialis manufacturer coupon</a>
cialis online singapore
canada law on cialis prescription
http://kaivanrosendaal.com/#cialis-prices

DavidtogDavidtog2019/02/06 03:19cialis black no prescription
buy cialis 10mg australia
<a href="http://kaivanrosendaal.com">discount cialis</a>
buy cialis online with discover card
cialis generico farmacia italiana
<a href=http://kaivanrosendaal.com>online cialis</a>
cialis no prescription needed canada
buy cialis in florida
http://kaivanrosendaal.com/#cialis-coupon

JasonPoGJasonPoG2019/03/01 03:44buy cialis united statescialis online express Cialis 10mg <a href="http://xcialis20mg.com">Buy Cialis 10 mg</a>

JasonPoGJasonPoG2019/03/01 11:04cialis 60mgcialis profesional Buy Cialis 60mg <a href="http://xcialis20mg.com">http://xcialis20mg.com</a>

JasonPoGJasonPoG2019/03/01 19:44cialis without prescription usacialis 5 mg terapia Buy Cialis 10 mg <a href="http://xcialis20mg.com">xcialis20mg.com</a>

JasonPoGJasonPoG2019/03/02 04:30cialis shop deutschlandcialis sold on the street Buy Cialis 40 mg <a href="http://xcialis20mg.com">http://xcialis20mg.com</a>

JasonPoGJasonPoG2019/03/03 01:24cialis heartburnis cialis in mexico good Cialis 10mg <a href="http://xcialis20mg.com">xcialis20mg.com</a>

GeorgegedGeorgeged2019/03/29 00:26evasione slot machine italia avalon slot machine gratis cleopatra slot machine wins <a href="http://hlaastmu.com/#slot">giochi on line free</a> slot machine mechanism bar bar bar slot machine compensi slot machine
slot machine expected value slot machine jammer app slot machine da bar video <a href=http://hlaastmu.com>giochi macchine gratis</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/03/29 04:56scandalo slot machine siti di slot machine slot machine donne <a href="http://hlaastmu.com/#slot">giochi gratis nuovi</a> slot machine anni 80 online re delle slot machine slot machine gratis deluxe
contabilitГ  gestore slot machine slot machine clan russo haunted house slot machine free <a href=http://www.hlaastmu.com>scaricare giochi gratis</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/03/29 09:13migliori slot machine frutta king of the wild slot machine slot machine da bar fowl play <a href="http://hlaastmu.com">slot bar</a> trucchi scaricare slot machine slot machine gratis senza download circus slot machine free
slot machine legge stabilitГ  slot machine gratis athens novostar slot machine trucchi <a href=http://hlaastmu.com/#slot>giochi slot machine gratis</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/03/29 13:32casino lawsuit slot machine logo slot machine slot machine ercole gratis <a href="http://hlaastmu.com/#slot">slot gratis senza registrazione</a> slot machine nuove normative slot machine l'isola del tesoro 2 evasione slot machine
truccare le slot machine simulazione slot machine gratis trucchi delle slot machine <a href=http://hlaastmu.com/>slot gratis</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/03/29 17:55happy birthday slot machine come si gioca alle slot machine percentuali di guadagno slot machine <a href="http://hlaastmu.com/#slot">giochi gratis 2016</a> giochi di slot machine net slot machine acquistare slot machine
slot machine in svizzera sala slot machine come aprire video slot machine bar <a href=http://hlaastmu.com/>giocare gratis slot</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/03/29 22:27gioco della slot machine da scaricare gratis chi gioca alle slot machine tasse vincite slot machine <a href="http://hlaastmu.com/#slot">http://hlaastmu.com/</a> percentuale slot machine bar slot machine farwest gratis come funziona una slot machine online
sala slot machine slot machine guadagno slot machine gratis sizzling hot <a href=http://hlaastmu.com/>slot gratis senza registrazione</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/03/30 03:06machine slot per bar 3 diamonds slot machine apparecchio per slot machine <a href="http://hlaastmu.com/">slot machine gratis da bar</a> fornitore slot machine free online slot machine games ordinanza slot machine
emp slot machine slot machine arezzo slot machine gratis da bar il mago <a href=http://www.hlaastmu.com>gioco gratis online</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/03/30 11:58how to cheat a slot machine with a cell phone slot machine meccaniche giocare gratis slot machine da bar <a href="http://hlaastmu.com">giochi gratis flash</a> sale slot machine portogruaro slot machine jackpot malaysia slot machine haunted house gioca gratis
slot machine legge stabilitГ  slot machine per casa slot machine tokens <a href=http://www.hlaastmu.com>giochi online gratis</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/03/31 16:07slot machine le iene electrifying riches slot machine online country girl slot machine <a href="http://hlaastmu.com/">slot machine gratis da giocare</a> golden goddess slot machine giocare con slot machine gratis slot-machine gratis
come vincere alle slot machine pokemon rosso fuoco slot machine quick fire slot machine cake topper <a href=http://hlaastmu.com>giochi on line free</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/03/31 20:22slot machine 3d gratis slot machine da bar 2017 free spin slot machine games <a href="http://hlaastmu.com">slot machine gratis da giocare</a> mandare in tilt slot machine si puo vincere alle slot machine slot machine gratis toto
riforma slot machine best slot machine in wynn come fare refill slot machine <a href=http://www.hlaastmu.com>giochi on line free</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/04/01 00:26slot machine gratis anni 90 slot machine nuove normative borderlands pre sequel slot machine hack <a href="http://www.hlaastmu.com">slot gratis</a> la grande fuga slot machine zeus slot machine las vegas best slot machine on bovada
casino lawsuit slot machine crack slot machine relazione tecnica installazione slot machine <a href=http://www.hlaastmu.com>slot machine gratis da scaricare</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/04/01 04:33consumo slot machine trucchi macchine slot machine slot machine no limits mod apk <a href="http://hlaastmu.com/#slot">giochi di macchina</a> aprire una sala slot machine in franchising come uscire dalla dipendenza dal gioco slot machine slot machine produzione
javascript slot machine code licenza per noleggio slot machine noleggio slot machine umbria <a href=http://hlaastmu.com/>gioco gratis</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/04/01 08:35disegni slot machine slot machine gratis da bar con bonus video slot machine gallina <a href="http://hlaastmu.com/#slot">slot machine gratis online</a> download slot machine gallina uova d'oro slot machine da bar gallina dalle uova d'oro giocare gratis slot machine da bar
crisi slot machine giochi nuovi gratis online slot machine slot machine novomatic gratis <a href=http://www.hlaastmu.com>gioco gratis online</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/04/01 12:51roman empire slot machine disegni di slot machine roman dynasty slot machine free <a href="http://www.hlaastmu.com">giocare gratis slot</a> associazione noleggiatori slot machine trucchi slot machine pokemon rosso tassazione slot machine 2015
slot machine ndrangheta mini slot machine scarica slot machine gratis per pc <a href=http://hlaastmu.com/#slot>gioco slot gratis</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/04/01 17:09golden girls slot machine game of thrones slot machine cavernicoli slot machine <a href="http://hlaastmu.com">nuovi giochi gratis</a> software per slot machine bluetooth giochi slot machine gratuiti slot machine con bancomat
free online slot machine games wheel of fortune gioco slot machine online king of the wild slot machine <a href=http://hlaastmu.com/>giochi di macchinette</a>

http://hlaastmu.com

GeorgegedGeorgeged2019/04/01 21:36slot machine gratis gallina 666 slot machine casino online slot machine gallina uova d oro <a href="http://www.hlaastmu.com">giochi da scaricare gratis</a> free cleopatra ii slot machine le iene nadia toffa slot machine franchising slot machine
slot machine tattoo old school cash spin slot machine jackpot slot machine il faraone <a href=http://hlaastmu.com/#slot>www slot machine gratis</a>

http://hlaastmu.com