Qualification Round: Watersheds

5201 correct small sets and 4674 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (5272 sets)
Java (1889 sets)
Python (941 sets)
C# (620 sets)
C (413 sets)
Ruby (152 sets)
Perl (136 sets)
Pascal (126 sets)
PHP (103 sets)
Haskell (61 sets)
JavaScript (19 sets)
Visual Basic (18 sets)
Scala (14 sets)
MATLAB (13 sets)
Groovy (12 sets)
OCaml (12 sets)
Scheme (9 sets)
ActionScript (7 sets)
Lisp (7 sets)
Clojure (6 sets)
F# (6 sets)
Lua (4 sets)
CMake (2 sets)
D (2 sets)
Erlang (2 sets)
Fortran (2 sets)
Maple (2 sets)
R (2 sets)
Boo (1 set)
Clean (1 set)
Eiffel (1 set)
Objective-C (1 set)
PostScript (1 set)
PowerShell (1 set)
Prolog (1 set)

Submission Origin

China (905 contestants)
United States (700 contestants)
India (483 contestants)
Russia (392 contestants)
Japan (220 contestants)
Brazil (184 contestants)
Poland (168 contestants)
Ukraine (142 contestants)
South Korea (112 contestants)
Canada (106 contestants)
Taiwan (92 contestants)
Australia (88 contestants)
Romania (85 contestants)
Argentina (72 contestants)
Germany (69 contestants)
United Kingdom (68 contestants)
Hungary (65 contestants)
Spain (57 contestants)
Vietnam (53 contestants)
Egypt (51 contestants)
Hong Kong (49 contestants)
France (47 contestants)
Singapore (47 contestants)
Thailand (46 contestants)
Bangladesh (44 contestants)
Belarus (44 contestants)
Bulgaria (44 contestants)
Indonesia (42 contestants)
Mexico (40 contestants)
Netherlands (39 contestants)
Slovakia (38 contestants)
Italy (35 contestants)
South Africa (33 contestants)
Colombia (29 contestants)
Czech Republic (27 contestants)
Israel (26 contestants)
Portugal (25 contestants)
Switzerland (25 contestants)
Turkey (24 contestants)
Sweden (22 contestants)
Croatia (21 contestants)
Peru (21 contestants)
Finland (19 contestants)
Venezuela (19 contestants)
Kazakhstan (18 contestants)
Denmark (17 contestants)
Lithuania (17 contestants)
New Zealand (17 contestants)
Belgium (16 contestants)
Georgia (15 contestants)
Austria (14 contestants)
Latvia (13 contestants)
Chile (12 contestants)
Pakistan (12 contestants)
Greece (11 contestants)
Lebanon (11 contestants)
Serbia (11 contestants)
Philippines (10 contestants)
Sri Lanka (10 contestants)
Estonia (9 contestants)
Armenia (8 contestants)
Slovenia (7 contestants)
Jordan (6 contestants)
Moldova (6 contestants)
Macedonia (5 contestants)
Bosnia and Herzegovina (4 contestants)
Dominican Republic (4 contestants)
Norway (4 contestants)
Bolivia (3 contestants)
Morocco (3 contestants)
Malaysia (2 contestants)
Nigeria (2 contestants)
Palestinian Territory (2 contestants)
Saudi Arabia (2 contestants)
Uruguay (2 contestants)
Albania (1 contestant)
Algeria (1 contestant)
Andorra (1 contestant)
Angola (1 contestant)
Azerbaijan (1 contestant)
Barbados (1 contestant)
Bhutan (1 contestant)
Ecuador (1 contestant)
Guatemala (1 contestant)
Ireland (1 contestant)
Madagascar (1 contestant)
Malta (1 contestant)
Nicaragua (1 contestant)
Puerto Rico (1 contestant)
Rwanda (1 contestant)
St Vincent & Grenadines (1 contestant)
U.S. Virgin Islands (1 contestant)
Zimbabwe (1 contestant)