Round 1C: The Great Wall

930 correct small sets and 74 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (650 sets)
Java (144 sets)
Python (106 sets)
C# (29 sets)
C (17 sets)
Ruby (16 sets)
Pascal (11 sets)
Scala (7 sets)
Groovy (3 sets)
Haskell (3 sets)
JavaScript (3 sets)
Perl (3 sets)
PHP (3 sets)
Go (2 sets)
ActionScript (1 set)
Clojure (1 set)
CoffeeScript (1 set)
Lua (1 set)
OCaml (1 set)
R (1 set)
Visual Basic (1 set)

Submission Origin

China (158 contestants)
Russia (96 contestants)
United States (58 contestants)
India (55 contestants)
Japan (48 contestants)
Poland (45 contestants)
Taiwan (33 contestants)
Ukraine (31 contestants)
South Korea (25 contestants)
France (23 contestants)
Bangladesh (18 contestants)
Germany (17 contestants)
Australia (16 contestants)
Hong Kong (16 contestants)
Indonesia (16 contestants)
Canada (15 contestants)
Netherlands (15 contestants)
Slovakia (15 contestants)
United Kingdom (14 contestants)
Belarus (13 contestants)
Brazil (13 contestants)
Argentina (12 contestants)
Bulgaria (11 contestants)
Hungary (11 contestants)
Thailand (10 contestants)
Czech Republic (8 contestants)
Iran (8 contestants)
Romania (8 contestants)
South Africa (8 contestants)
Vietnam (8 contestants)
Kazakhstan (7 contestants)
Sweden (7 contestants)
Croatia (6 contestants)
Greece (6 contestants)
Egypt (5 contestants)
Israel (5 contestants)
Singapore (5 contestants)
Spain (5 contestants)
Turkey (5 contestants)
Philippines (4 contestants)
Portugal (4 contestants)
Slovenia (4 contestants)
Georgia (3 contestants)
Italy (3 contestants)
Latvia (3 contestants)
Mexico (3 contestants)
New Zealand (3 contestants)
Serbia (3 contestants)
Belgium (2 contestants)
Colombia (2 contestants)
Lithuania (2 contestants)
Norway (2 contestants)
Switzerland (2 contestants)
Venezuela (2 contestants)
Armenia (1 contestant)
Azerbaijan (1 contestant)
Denmark (1 contestant)
Dominican Republic (1 contestant)
Finland (1 contestant)
Iceland (1 contestant)
Lebanon (1 contestant)
Moldova (1 contestant)
Nepal (1 contestant)
North Korea (1 contestant)
Sri Lanka (1 contestant)
Uruguay (1 contestant)
Uzbekistan (1 contestant)