Qualification Round: Fair and Square

17569 correct small sets, 6080 correct large-1 sets, and 872 correct large-2 sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (10169 sets)
Java (5689 sets)
Python (4311 sets)
C (1177 sets)
C# (1136 sets)
Ruby (509 sets)
PHP (253 sets)
Haskell (238 sets)
Scala (131 sets)
Perl (129 sets)
Pascal (113 sets)
JavaScript (101 sets)
Go (73 sets)
MATLAB (50 sets)
Visual Basic (45 sets)
Clojure (39 sets)
Groovy (38 sets)
OCaml (38 sets)
Lua (24 sets)
D (23 sets)
Lisp (23 sets)
Racket (19 sets)
Objective-C (14 sets)
Scheme (12 sets)
F# (11 sets)
R (9 sets)
Shell (9 sets)
Erlang (8 sets)
ActionScript (7 sets)
AWK (5 sets)
CoffeeScript (4 sets)
Dart (4 sets)
J (4 sets)
Xtend (4 sets)
bc (3 sets)
Nemerle (3 sets)
Standard ML (3 sets)
TCL (3 sets)
AutoIt (2 sets)
Cache (2 sets)
Factor (2 sets)
Fortran (2 sets)
GAP (2 sets)
Golfscript (2 sets)
Julia (2 sets)
Mathematica (2 sets)
Pike (2 sets)
Alice (1 set)
Cobra (1 set)
Coco (1 set)
Cool (1 set)
dc (1 set)
Haxe (1 set)
Linden Scripting Language (1 set)
Logo (1 set)
Octave (1 set)
PL/SQL (1 set)
PowerShell (1 set)
Prolog (1 set)
Rexx (1 set)
Smalltalk (1 set)
Taxi (1 set)
Whirl (1 set)
WRAPL (1 set)

Submission Origin

India (3524 contestants)
United States (2097 contestants)
China (1904 contestants)
Russia (706 contestants)
Japan (588 contestants)
Egypt (436 contestants)
Brazil (414 contestants)
Canada (405 contestants)
France (366 contestants)
Poland (342 contestants)
Ukraine (330 contestants)
South Korea (319 contestants)
United Kingdom (297 contestants)
Australia (293 contestants)
Taiwan (289 contestants)
Germany (271 contestants)
Bangladesh (259 contestants)
Spain (225 contestants)
Thailand (211 contestants)
Indonesia (183 contestants)
Romania (172 contestants)
Israel (157 contestants)
Colombia (152 contestants)
Mexico (134 contestants)
Hong Kong (132 contestants)
Argentina (127 contestants)
Vietnam (125 contestants)
Sri Lanka (114 contestants)
Italy (111 contestants)
Netherlands (111 contestants)
Belarus (110 contestants)
South Africa (110 contestants)
Greece (107 contestants)
Iran (106 contestants)
Hungary (104 contestants)
Turkey (103 contestants)
Pakistan (102 contestants)
Singapore (99 contestants)
Slovakia (90 contestants)
Sweden (87 contestants)
Czech Republic (83 contestants)
New Zealand (82 contestants)
Bulgaria (80 contestants)
Portugal (71 contestants)
Philippines (70 contestants)
Morocco (67 contestants)
Cameroon (64 contestants)
Venezuela (62 contestants)
Nigeria (55 contestants)
Croatia (54 contestants)
Peru (52 contestants)
Belgium (51 contestants)
Georgia (49 contestants)
Switzerland (47 contestants)
Chile (46 contestants)
Lithuania (46 contestants)
Austria (38 contestants)
Bolivia (35 contestants)
Denmark (31 contestants)
Palestinian Territory (31 contestants)
Serbia (31 contestants)
Latvia (30 contestants)
Kazakhstan (29 contestants)
Tunisia (29 contestants)
Finland (28 contestants)
Ireland (25 contestants)
Norway (25 contestants)
Moldova (24 contestants)
Lebanon (23 contestants)
Estonia (22 contestants)
Malaysia (22 contestants)
Slovenia (21 contestants)
Azerbaijan (19 contestants)
Jordan (17 contestants)
Iceland (15 contestants)
Algeria (14 contestants)
Armenia (13 contestants)
Mongolia (12 contestants)
Nepal (11 contestants)
Ecuador (10 contestants)
Kenya (10 contestants)
Dominican Republic (9 contestants)
Bosnia and Herzegovina (8 contestants)
Cyprus (8 contestants)
Ethiopia (8 contestants)
Ghana (8 contestants)
Macedonia (8 contestants)
Uruguay (8 contestants)
Guatemala (7 contestants)
Albania (6 contestants)
Angola (6 contestants)
Costa Rica (6 contestants)
Uzbekistan (6 contestants)
Afghanistan (5 contestants)
Andorra (5 contestants)
Luxembourg (5 contestants)
Togo (5 contestants)
Yemen (5 contestants)
Benin (4 contestants)
Kuwait (4 contestants)
Kyrgyzstan (4 contestants)
Macau (4 contestants)
Bhutan (3 contestants)
Jamaica (3 contestants)
Madagascar (3 contestants)
Nicaragua (3 contestants)
North Korea (3 contestants)
Trinidad and Tobago (3 contestants)
Tuvalu (3 contestants)
United Arab Emirates (3 contestants)
Anguilla (2 contestants)
Aruba (2 contestants)
Burundi (2 contestants)
Cuba (2 contestants)
El Salvador (2 contestants)
Honduras (2 contestants)
Ivory Coast (2 contestants)
Liberia (2 contestants)
Malawi (2 contestants)
Mauritius (2 contestants)
Saudi Arabia (2 contestants)
Tajikistan (2 contestants)
Turkmenistan (2 contestants)
Vatican City (2 contestants)
Western Sahara (2 contestants)
Zimbabwe (2 contestants)
Barbados (1 contestant)
Brunei (1 contestant)
Cambodia (1 contestant)
Cayman Islands (1 contestant)
Chad (1 contestant)
Dominica (1 contestant)
Equatorial Guinea (1 contestant)
Gabon (1 contestant)
Guadeloupe (1 contestant)
Guyana (1 contestant)
Iraq (1 contestant)
Kosovo (1 contestant)
Micronesia (1 contestant)
Montenegro (1 contestant)
Mozambique (1 contestant)
Myanmar (1 contestant)
Oman (1 contestant)
Panama (1 contestant)
Paraguay (1 contestant)
Puerto Rico (1 contestant)
Qatar (1 contestant)
Rwanda (1 contestant)
Saint Kitts and Nevis (1 contestant)
Senegal (1 contestant)
Solomon Islands (1 contestant)
Syria (1 contestant)
U.S. Virgin Islands (1 contestant)
Zambia (1 contestant)