Qualification Round: Candy Splitting

8188 correct small sets and 6286 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (7859 sets)
Java (2572 sets)
Python (1698 sets)
C (675 sets)
C# (649 sets)
Ruby (241 sets)
Pascal (150 sets)
Haskell (146 sets)
Perl (119 sets)
PHP (108 sets)
Scala (34 sets)
Lisp (27 sets)
F# (23 sets)
OCaml (21 sets)
Groovy (17 sets)
JavaScript (17 sets)
Clojure (16 sets)
Visual Basic (12 sets)
MATLAB (11 sets)
Go (8 sets)
Shell (8 sets)
ActionScript (5 sets)
D (5 sets)
Fortran (4 sets)
Lua (4 sets)
CoffeeScript (3 sets)
Erlang (3 sets)
J (3 sets)
Basic (2 sets)
Golfscript (2 sets)
Objective-C (2 sets)
Prolog (2 sets)
R (2 sets)
Racket (2 sets)
WRAPL (2 sets)
Assembly (1 set)
Boo (1 set)
Brainfuck (1 set)
CMake (1 set)
Factor (1 set)
LOLCODE (1 set)
Markov algorithm (1 set)
Scheme (1 set)
Shakespeare (1 set)

Submission Origin

China (1462 contestants)
India (903 contestants)
United States (710 contestants)
Russia (588 contestants)
Japan (480 contestants)
Ukraine (242 contestants)
Poland (238 contestants)
Brazil (237 contestants)
Taiwan (172 contestants)
Canada (162 contestants)
South Korea (143 contestants)
France (132 contestants)
Germany (122 contestants)
Australia (121 contestants)
Romania (120 contestants)
Egypt (112 contestants)
Indonesia (111 contestants)
Thailand (109 contestants)
United Kingdom (103 contestants)
Vietnam (99 contestants)
Bangladesh (98 contestants)
Spain (88 contestants)
Belarus (87 contestants)
Hungary (83 contestants)
Israel (83 contestants)
Hong Kong (78 contestants)
Argentina (77 contestants)
Mexico (65 contestants)
Bulgaria (61 contestants)
Slovakia (58 contestants)
Colombia (54 contestants)
Sweden (50 contestants)
Netherlands (45 contestants)
South Africa (44 contestants)
Croatia (39 contestants)
Turkey (38 contestants)
Czech Republic (37 contestants)
Iran (36 contestants)
Peru (35 contestants)
Greece (33 contestants)
New Zealand (32 contestants)
Singapore (32 contestants)
Italy (31 contestants)
Kazakhstan (30 contestants)
Sri Lanka (28 contestants)
Portugal (25 contestants)
Serbia (25 contestants)
Pakistan (24 contestants)
Philippines (24 contestants)
Belgium (20 contestants)
Latvia (20 contestants)
Switzerland (20 contestants)
Venezuela (20 contestants)
Finland (18 contestants)
Lithuania (17 contestants)
Norway (17 contestants)
Austria (16 contestants)
Georgia (16 contestants)
Denmark (14 contestants)
Chile (13 contestants)
Macedonia (13 contestants)
Moldova (13 contestants)
Morocco (13 contestants)
Armenia (12 contestants)
Estonia (11 contestants)
Malaysia (10 contestants)
Ireland (9 contestants)
Slovenia (8 contestants)
Kyrgyzstan (7 contestants)
Lebanon (7 contestants)
Bolivia (6 contestants)
Uruguay (6 contestants)
Bosnia and Herzegovina (5 contestants)
Mongolia (5 contestants)
Afghanistan (4 contestants)
Dominican Republic (4 contestants)
Guatemala (4 contestants)
Algeria (3 contestants)
Cameroon (3 contestants)
Kenya (3 contestants)
Nigeria (3 contestants)
Palestinian Territory (3 contestants)
Antigua & Barbuda (2 contestants)
Benin (2 contestants)
Cuba (2 contestants)
Cyprus (2 contestants)
Jordan (2 contestants)
Nepal (2 contestants)
Syria (2 contestants)
Uzbekistan (2 contestants)
Albania (1 contestant)
Andorra (1 contestant)
Azerbaijan (1 contestant)
Congo (1 contestant)
Costa Rica (1 contestant)
Djibouti (1 contestant)
Ecuador (1 contestant)
Fiji (1 contestant)
Gibraltar (1 contestant)
Honduras (1 contestant)
Iceland (1 contestant)
Ivory Coast (1 contestant)
Jamaica (1 contestant)
Lesotho (1 contestant)
Luxembourg (1 contestant)
Malta (1 contestant)
Nicaragua (1 contestant)
Rwanda (1 contestant)
Saudi Arabia (1 contestant)
Sudan (1 contestant)
Togo (1 contestant)
Trinidad and Tobago (1 contestant)
Tunisia (1 contestant)
U.S. Virgin Islands (1 contestant)
Western Sahara (1 contestant)