Round 2: Crazy Rows

1837 correct small sets and 1605 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (2437 sets)
Java (444 sets)
Python (216 sets)
C# (110 sets)
Pascal (68 sets)
C (61 sets)
Haskell (36 sets)
Ruby (29 sets)
Perl (15 sets)
PHP (8 sets)
OCaml (4 sets)
Lisp (3 sets)
ActionScript (2 sets)
F# (2 sets)
Lua (2 sets)
Scala (2 sets)
Visual Basic (2 sets)
Scheme (1 set)

Submission Origin

China (383 contestants)
Russia (238 contestants)
United States (186 contestants)
Poland (87 contestants)
Japan (84 contestants)
India (67 contestants)
Ukraine (65 contestants)
Brazil (58 contestants)
South Korea (48 contestants)
Canada (36 contestants)
Belarus (34 contestants)
Taiwan (31 contestants)
Hong Kong (30 contestants)
Romania (28 contestants)
Germany (25 contestants)
Argentina (23 contestants)
Australia (21 contestants)
Bulgaria (21 contestants)
Slovakia (21 contestants)
United Kingdom (20 contestants)
Bangladesh (18 contestants)
Singapore (18 contestants)
Egypt (17 contestants)
Netherlands (16 contestants)
Spain (15 contestants)
Hungary (14 contestants)
Indonesia (14 contestants)
Vietnam (13 contestants)
Croatia (12 contestants)
France (12 contestants)
Czech Republic (11 contestants)
Italy (11 contestants)
Thailand (10 contestants)
Latvia (9 contestants)
Lithuania (9 contestants)
Peru (9 contestants)
South Africa (9 contestants)
Sweden (9 contestants)
Finland (8 contestants)
Kazakhstan (8 contestants)
Georgia (7 contestants)
Israel (7 contestants)
Colombia (6 contestants)
Denmark (6 contestants)
Armenia (5 contestants)
Mexico (5 contestants)
Austria (4 contestants)
Greece (4 contestants)
Lebanon (4 contestants)
New Zealand (4 contestants)
Portugal (4 contestants)
Serbia (4 contestants)
Switzerland (4 contestants)
Venezuela (4 contestants)
Estonia (3 contestants)
Norway (3 contestants)
Slovenia (3 contestants)
Moldova (2 contestants)
Sri Lanka (2 contestants)
Bolivia (1 contestant)
Chile (1 contestant)
Dominican Republic (1 contestant)
Macedonia (1 contestant)
Philippines (1 contestant)
Turkey (1 contestant)
U.S. Virgin Islands (1 contestant)
Uruguay (1 contestant)