Qualification Round: Magic Trick

25127 correct small sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (10930 sets)
Java (5405 sets)
Python (4135 sets)
C (1697 sets)
C# (1058 sets)
Ruby (419 sets)
PHP (219 sets)
Haskell (165 sets)
JavaScript (131 sets)
Perl (129 sets)
Scala (122 sets)
Go (104 sets)
Pascal (67 sets)
MATLAB (53 sets)
Visual Basic (46 sets)
Clojure (36 sets)
Groovy (34 sets)
OCaml (29 sets)
Objective-C (22 sets)
F# (20 sets)
Lisp (20 sets)
D (19 sets)
CoffeeScript (14 sets)
R (14 sets)
Shell (14 sets)
Lua (13 sets)
Dart (10 sets)
Scheme (8 sets)
Rust (7 sets)
AWK (6 sets)
Julia (6 sets)
TCL (6 sets)
Racket (5 sets)
ActionScript (4 sets)
J (4 sets)
PowerShell (4 sets)
Erlang (3 sets)
Kotlin (3 sets)
Octave (3 sets)
Ada (2 sets)
AutoIt (2 sets)
Fortran (2 sets)
PL/SQL (2 sets)
SQL (2 sets)
Standard ML (2 sets)
Agda (1 set)
B (1 set)
Basic (1 set)
Brainfuck (1 set)
Cache (1 set)
COBOL (1 set)
Cobra (1 set)
Factor (1 set)
HSP (1 set)
Markov algorithm (1 set)
Nemerle (1 set)
PostScript (1 set)
Processing (1 set)
Prolog (1 set)
sed (1 set)
Shakespeare (1 set)
Smalltalk (1 set)
Spreadsheet (1 set)
Vimscript (1 set)
Whitespace (1 set)
WRAPL (1 set)

Submission Origin

India (5594 contestants)
United States (2999 contestants)
China (2770 contestants)
Russia (945 contestants)
Japan (718 contestants)
Canada (632 contestants)
Brazil (548 contestants)
South Korea (492 contestants)
France (490 contestants)
Egypt (479 contestants)
Poland (466 contestants)
Taiwan (465 contestants)
Ukraine (402 contestants)
Australia (392 contestants)
Germany (337 contestants)
United Kingdom (322 contestants)
Romania (295 contestants)
Bangladesh (294 contestants)
Thailand (272 contestants)
Indonesia (271 contestants)
Spain (270 contestants)
Pakistan (261 contestants)
Vietnam (255 contestants)
Mexico (228 contestants)
Italy (204 contestants)
Hong Kong (177 contestants)
Israel (173 contestants)
Colombia (171 contestants)
Singapore (168 contestants)
Belarus (160 contestants)
Turkey (156 contestants)
Argentina (155 contestants)
Greece (151 contestants)
Hungary (147 contestants)
Netherlands (145 contestants)
Sri Lanka (140 contestants)
New Zealand (136 contestants)
Iran (134 contestants)
South Africa (128 contestants)
Sweden (124 contestants)
Slovakia (116 contestants)
Czech Republic (115 contestants)
Belgium (102 contestants)
Philippines (99 contestants)
Peru (97 contestants)
Bulgaria (90 contestants)
Portugal (88 contestants)
Switzerland (76 contestants)
Croatia (75 contestants)
Bolivia (73 contestants)
Venezuela (69 contestants)
Cameroon (68 contestants)
Lithuania (58 contestants)
Morocco (58 contestants)
Austria (57 contestants)
Malaysia (53 contestants)
Finland (51 contestants)
Tunisia (49 contestants)
Chile (48 contestants)
Ireland (47 contestants)
Kazakhstan (47 contestants)
Latvia (47 contestants)
Norway (45 contestants)
Nigeria (44 contestants)
Georgia (43 contestants)
Serbia (39 contestants)
Palestinian Territory (35 contestants)
Denmark (34 contestants)
Slovenia (33 contestants)
Armenia (32 contestants)
Jordan (32 contestants)
Lebanon (27 contestants)
Nepal (27 contestants)
Azerbaijan (26 contestants)
Moldova (25 contestants)
Estonia (22 contestants)
Macedonia (22 contestants)
Dominican Republic (21 contestants)
Uzbekistan (21 contestants)
Iceland (20 contestants)
Mongolia (16 contestants)
Algeria (15 contestants)
Ghana (14 contestants)
Ecuador (13 contestants)
Ethiopia (12 contestants)
Kyrgyzstan (12 contestants)
Uruguay (12 contestants)
Kenya (11 contestants)
Turkmenistan (11 contestants)
Zimbabwe (10 contestants)
Afghanistan (9 contestants)
Albania (9 contestants)
Luxembourg (9 contestants)
Costa Rica (8 contestants)
Jamaica (8 contestants)
North Korea (8 contestants)
Andorra (7 contestants)
Cuba (7 contestants)
Bosnia and Herzegovina (6 contestants)
Cyprus (6 contestants)
Macau (6 contestants)
Syria (6 contestants)
Aruba (5 contestants)
Saudi Arabia (5 contestants)
Cambodia (4 contestants)
Vatican City (4 contestants)
Burundi (3 contestants)
Gabon (3 contestants)
Guatemala (3 contestants)
Kuwait (3 contestants)
Madagascar (3 contestants)
Puerto Rico (3 contestants)
Seychelles (3 contestants)
Togo (3 contestants)
Uganda (3 contestants)
Angola (2 contestants)
Antigua and Barbuda (2 contestants)
Benin (2 contestants)
Brunei (2 contestants)
Congo (2 contestants)
El Salvador (2 contestants)
Guernsey (2 contestants)
Guyana (2 contestants)
Iraq (2 contestants)
Malawi (2 contestants)
Malta (2 contestants)
Mauritius (2 contestants)
Nicaragua (2 contestants)
Oman (2 contestants)
Tanzania (2 contestants)
Trinidad and Tobago (2 contestants)
United Arab Emirates (2 contestants)
Yemen (2 contestants)
Zambia (2 contestants)
Anguilla (1 contestant)
Barbados (1 contestant)
Bhutan (1 contestant)
British Virgin Islands (1 contestant)
Cayman Islands (1 contestant)
Grenada (1 contestant)
Guinea-Bissau (1 contestant)
Honduras (1 contestant)
Ivory Coast (1 contestant)
Kiribati (1 contestant)
Kosovo (1 contestant)
Laos (1 contestant)
Liberia (1 contestant)
Liechtenstein (1 contestant)
Martinique (1 contestant)
Monaco (1 contestant)
Mozambique (1 contestant)
Myanmar (1 contestant)
Namibia (1 contestant)
Panama (1 contestant)
Papua New Guinea (1 contestant)
Qatar (1 contestant)
Rwanda (1 contestant)
Saint Vincent (1 contestant)
Sao Tome (1 contestant)
Sierra Leone (1 contestant)
Somalia (1 contestant)
Tajikistan (1 contestant)
Tonga (1 contestant)
Tuvalu (1 contestant)
U.S. Virgin Islands (1 contestant)
Western Sahara (1 contestant)