Skip to content

kamyu104/GoogleCodeJam-2008

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

37 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python solutions of Google Code Jam 2008. Solution begins with * means it will get TLE in the largest data set (total computation amount > 10^8, which is not friendly for Python to solve in 5 ~ 15 seconds). A 4-minute timer is set for the small dataset and a 8-minute timer is set for the large dataset this year.

Qualification Round

# Title Solution Time Space Difficulty Tag Note
A Saving the Universe
B Train Timetable
C Fly Swatter

Round 1A

# Title Solution Time Space Difficulty Tag Note
A Minimum Scalar Product Python O(NlogN) O(1) Easy Sort
B Milkshakes
C Numbers Python O(logN) O(1) Easy Matrix Exponentiation

Round 1B

# Title Solution Time Space Difficulty Tag Note
A Crop Triangles
B Number Sets Python O(F * (B - A)) O(B - A) Easy Prime Sieving, Binary Search, Union Find
C Mousetrap

Round 1C

# Title Solution Time Space Difficulty Tag Note
A Text Messaging Outrage
B Ugly Numbers
C Increasing Speed Limits

Round 2

# Title Solution Time Space Difficulty Tag Note
A Cheating a Boolean Tree
B Triangle Areas
C Star Wars
D PermRLE

Round 3

# Title Solution Time Space Difficulty Tag Note
A How Big Are the Pockets?
B Portal
C No Cheating Python O(M * N * sqrt(M * N) O(M * N) Easy Bipartite Matching
D Endless Knight

APAC Semifinal

# Title Solution Time Space Difficulty Tag Note
A What are Birds?
B Apocalypse Soon
C Millionaire C++ PyPy O(4^M) O(2^M) Medium DP
D Modern Art Plagiarism

AMER Semifinal

# Title Solution Time Space Difficulty Tag Note
A Mixing Bowls
B Code Sequence
C Test Passing Probability
D King O(R * C * 2^C) O(R * C * 2^C) Very Hard DP, Brute Force

EMEA Semifinal

# Title Solution Time Space Difficulty Tag Note
A Scaled Triangle
B Painting a Fence
C Rainbow Trees
D Bus Stops

World Finals

# Title Solution Time Space Difficulty Tag Note
A Juice
B Ping Pong Balls
C Mine Layer
D Bridge Builders
E The Year of Code Jam

About

πŸƒ Python Solutions of GCJ 2008

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors