Qualification Round: Tidy Numbers

24253 correct small sets and 17756 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (19652 sets)
Python (9383 sets)
Java (7856 sets)
C# (1308 sets)
C (1189 sets)
Ruby (409 sets)
JavaScript (398 sets)
Haskell (253 sets)
PHP (241 sets)
Go (214 sets)
Scala (150 sets)
MATLAB (88 sets)
Rust (75 sets)
Kotlin (74 sets)
Perl (73 sets)
Swift (53 sets)
Clojure (37 sets)
OCaml (34 sets)
Pascal (31 sets)
Visual Basic (28 sets)
R (27 sets)
D (24 sets)
Julia (19 sets)
F# (18 sets)
Lisp (18 sets)
Lua (18 sets)
Groovy (17 sets)
Shell (16 sets)
Racket (11 sets)
Dart (10 sets)
Objective-C (10 sets)
TypeScript (10 sets)
Elixir (9 sets)
Scheme (8 sets)
CoffeeScript (6 sets)
Crystal (6 sets)
J (6 sets)
Ada (4 sets)
Picat (4 sets)
CJam (3 sets)
Fortran (3 sets)
Golfscript (3 sets)
Mathematica (3 sets)
ActionScript (2 sets)
AWK (2 sets)
Cache (2 sets)
dc (2 sets)
Erlang (2 sets)
Factor (2 sets)
LOLCODE (2 sets)
Q (2 sets)
Röda (2 sets)
Shakespeare (2 sets)
SQL (2 sets)
Standard ML (2 sets)
WRAPL (2 sets)
bc (1 set)
Prolog (1 set)
Pyth (1 set)
sed (1 set)
Smalltalk (1 set)
Spreadsheet (1 set)
TCL (1 set)

Submission Origin

India (5957 contestants)
United States (3092 contestants)
China (1597 contestants)
Russia (906 contestants)
South Korea (753 contestants)
Japan (726 contestants)
Canada (674 contestants)
Brazil (550 contestants)
France (531 contestants)
Taiwan (491 contestants)
Egypt (447 contestants)
Ukraine (424 contestants)
Bangladesh (402 contestants)
Germany (373 contestants)
Poland (350 contestants)
Australia (328 contestants)
Vietnam (290 contestants)
United Kingdom (284 contestants)
Thailand (265 contestants)
Israel (259 contestants)
Indonesia (243 contestants)
Italy (243 contestants)
Colombia (222 contestants)
Spain (221 contestants)
Romania (219 contestants)
Mexico (199 contestants)
Singapore (192 contestants)
Hong Kong (177 contestants)
Hungary (168 contestants)
Pakistan (166 contestants)
Iran (156 contestants)
Turkey (156 contestants)
Greece (149 contestants)
Netherlands (146 contestants)
Sweden (145 contestants)
Belarus (135 contestants)
Argentina (126 contestants)
South Africa (110 contestants)
Belgium (101 contestants)
Slovakia (101 contestants)
New Zealand (95 contestants)
Czech Republic (91 contestants)
Switzerland (88 contestants)
Peru (79 contestants)
Kazakhstan (76 contestants)
Philippines (75 contestants)
Portugal (74 contestants)
Tunisia (74 contestants)
Morocco (71 contestants)
Venezuela (62 contestants)
Lithuania (60 contestants)
Nigeria (59 contestants)
? (56 contestants)
Sri Lanka (56 contestants)
Bulgaria (51 contestants)
Croatia (50 contestants)
Bolivia (44 contestants)
Ireland (44 contestants)
Austria (43 contestants)
Finland (39 contestants)
Denmark (38 contestants)
Malaysia (37 contestants)
Norway (37 contestants)
Georgia (36 contestants)
Slovenia (36 contestants)
Nepal (34 contestants)
Chile (33 contestants)
Moldova (31 contestants)
Jordan (29 contestants)
Armenia (28 contestants)
Serbia (28 contestants)
Latvia (27 contestants)
Algeria (23 contestants)
Macedonia (23 contestants)
Azerbaijan (21 contestants)
Iceland (21 contestants)
Lebanon (21 contestants)
Jamaica (18 contestants)
Cameroon (17 contestants)
Syria (15 contestants)
Uzbekistan (15 contestants)
Estonia (14 contestants)
Saudi Arabia (14 contestants)
Ethiopia (13 contestants)
Palestine (13 contestants)
Kenya (12 contestants)
Cyprus (11 contestants)
Tajikistan (11 contestants)
Turkmenistan (11 contestants)
Dominican Republic (10 contestants)
Ecuador (10 contestants)
Kyrgyzstan (10 contestants)
Mongolia (10 contestants)
Cambodia (9 contestants)
Afghanistan (8 contestants)
Antarctica (8 contestants)
Kosovo (8 contestants)
Macau (8 contestants)
Costa Rica (7 contestants)
United Arab Emirates (7 contestants)
Albania (6 contestants)
Benin (6 contestants)
Togo (6 contestants)
Uruguay (6 contestants)
Bosnia and Herzegovina (5 contestants)
Puerto Rico (5 contestants)
Bahrain (4 contestants)
Cuba (4 contestants)
Guatemala (4 contestants)
Haiti (4 contestants)
Luxembourg (4 contestants)
Mauritius (4 contestants)
Oman (4 contestants)
Rwanda (4 contestants)
Burkina Faso (3 contestants)
Kuwait (3 contestants)
Malta (3 contestants)
Uganda (3 contestants)
Zimbabwe (3 contestants)
Bahamas (2 contestants)
Guadeloupe (2 contestants)
Iraq (2 contestants)
Nicaragua (2 contestants)
Senegal (2 contestants)
Trinidad and Tobago (2 contestants)
U.S. Virgin Islands (2 contestants)
Åland Islands (2 contestants)
Angola (1 contestant)
Aruba (1 contestant)
Botswana (1 contestant)
British Virgin Islands (1 contestant)
Chad (1 contestant)
Fiji (1 contestant)
Gabon (1 contestant)
Ghana (1 contestant)
Greenland (1 contestant)
Guernsey (1 contestant)
Honduras (1 contestant)
Isle of Man (1 contestant)
Jersey (1 contestant)
Libya (1 contestant)
Madagascar (1 contestant)
Martinique (1 contestant)
Montenegro (1 contestant)
Mozambique (1 contestant)
Myanmar (1 contestant)
Namibia (1 contestant)
New Caledonia (1 contestant)
Niger (1 contestant)
North Korea (1 contestant)
Panama (1 contestant)
Paraguay (1 contestant)
Réunion (1 contestant)
South Sudan (1 contestant)
Sudan (1 contestant)
Vatican City (1 contestant)
Wallis and Futuna (1 contestant)
Western Sahara (1 contestant)
Yemen (1 contestant)
Zambia (1 contestant)