Round 2: Up and Down

1728 correct small sets and 1351 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (2349 sets)
Java (360 sets)
Python (211 sets)
C# (46 sets)
C (25 sets)
Haskell (24 sets)
Ruby (18 sets)
D (11 sets)
Scala (8 sets)
Go (6 sets)
Pascal (6 sets)
JavaScript (4 sets)
OCaml (4 sets)
Julia (2 sets)
Lua (2 sets)
MATLAB (2 sets)
Visual Basic (1 set)

Submission Origin

China (439 contestants)
Russia (207 contestants)
Japan (132 contestants)
United States (110 contestants)
Poland (68 contestants)
Taiwan (63 contestants)
Ukraine (52 contestants)
South Korea (48 contestants)
India (46 contestants)
Canada (31 contestants)
Brazil (30 contestants)
Belarus (28 contestants)
Bangladesh (24 contestants)
Hong Kong (21 contestants)
Slovakia (20 contestants)
Argentina (18 contestants)
Australia (18 contestants)
Iran (18 contestants)
Germany (17 contestants)
Indonesia (17 contestants)
Thailand (17 contestants)
Bulgaria (16 contestants)
Vietnam (16 contestants)
Romania (14 contestants)
Czech Republic (13 contestants)
Egypt (13 contestants)
Spain (13 contestants)
France (12 contestants)
Netherlands (12 contestants)
Croatia (10 contestants)
Hungary (10 contestants)
Singapore (9 contestants)
Sweden (9 contestants)
Kazakhstan (8 contestants)
Peru (8 contestants)
United Kingdom (8 contestants)
Israel (7 contestants)
Mexico (7 contestants)
Colombia (6 contestants)
Georgia (6 contestants)
Greece (6 contestants)
Latvia (6 contestants)
South Africa (6 contestants)
Switzerland (6 contestants)
Belgium (5 contestants)
Finland (5 contestants)
Italy (5 contestants)
Philippines (5 contestants)
Serbia (5 contestants)
Armenia (4 contestants)
Lithuania (4 contestants)
Norway (4 contestants)
Turkey (4 contestants)
Austria (3 contestants)
Kyrgyzstan (3 contestants)
New Zealand (3 contestants)
Portugal (3 contestants)
Slovenia (3 contestants)
Bolivia (2 contestants)
Jordan (2 contestants)
Lebanon (2 contestants)
Macedonia (2 contestants)
Sri Lanka (2 contestants)
Azerbaijan (1 contestant)
Cayman Islands (1 contestant)
Chile (1 contestant)
Cuba (1 contestant)
Denmark (1 contestant)
Dominican Republic (1 contestant)
Estonia (1 contestant)
Iceland (1 contestant)
Malaysia (1 contestant)
Moldova (1 contestant)
Mongolia (1 contestant)
North Korea (1 contestant)
Pakistan (1 contestant)
Tajikistan (1 contestant)
Tuvalu (1 contestant)
U.S. Virgin Islands (1 contestant)
Venezuela (1 contestant)