https://github.com/indy256/codejam-templates
Templates for Google Code Jam contest in different programming languages
https://github.com/indy256/codejam-templates
Last synced: 9 months ago
JSON representation
Templates for Google Code Jam contest in different programming languages
- Host: GitHub
- URL: https://github.com/indy256/codejam-templates
- Owner: indy256
- License: unlicense
- Created: 2014-04-11T10:36:39.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-04-12T15:09:35.000Z (almost 6 years ago)
- Last Synced: 2025-04-30T05:03:29.488Z (9 months ago)
- Language: Java
- Homepage: https://code.google.com/codejam/
- Size: 30.3 KB
- Stars: 32
- Watchers: 4
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.