codeforces-cli-0.1.0: Command line interface to interact with Codeforces.
Safe HaskellNone
LanguageHaskell2010

Codeforces.Virtual

Synopsis

Documentation

data VirtualUser Source #

Represents the virtual participation of the user in this contest.

Constructors

VirtualUser 

Fields

Instances

Instances details
Show VirtualUser Source # 
Instance details

Defined in Codeforces.Virtual.Types

data VirtualResult Source #

A virtual participation result

Instances

Instances details
Show VirtualResult Source # 
Instance details

Defined in Codeforces.Virtual.Types

type Delta = Int Source #

Difference in rating between a user's current rating, and their rating following this contest.

type Seed = Float Source #

The seed is the expected ranking for each participant before the contest begins.

A contestant's rating increases should they perform better than their seed, and decreases should they perform worse.

calculateResult Source #

Arguments

:: VirtualUser

Details about the virtual participation.

-> [RatingChange]

Rating changes for this contest

-> [RanklistRow]

Standings for this contest.

-> Maybe VirtualResult

Contest results for this user

Computes the results the user would have had, had they participated in this contest live with their current rating.