All Projects → indy256 → codejam-templates

indy256 / codejam-templates

Licence: Unlicense license
Templates for Google Code Jam contest in different programming languages

Programming Languages

java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language
C++
36643 projects - #6 most used programming language
scala
5932 projects
C#
18002 projects
d
599 projects

codejam-templates

Templates for Google Code Jam contests in different programming languages.

In order to make a good demonstration of language constructs the following simple problem is solved by the templates.

Problem statement

Answer median and arithmetic mean calculation queries for given arrays of real numbers. For median queries arrays will have odd length. For each query answer must have 10 correctly rounded fractional digits.

Example of input:

2
median 3 2.32 1.55 3.17
mean 2 5 7

Example of output:

Case #1: 2.3200000000
Case #2: 6.0000000000

-- Feel free to contribute additional languages and corrections.

Todo: add multi-threaded templates.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].