Qualification Round: Snapper Chain

9461 correct small sets and 7957 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (8634 sets)
Java (3256 sets)
Python (1905 sets)
C (1161 sets)
C# (984 sets)
Ruby (300 sets)
PHP (236 sets)
Perl (201 sets)
Haskell (177 sets)
Pascal (159 sets)
Visual Basic (70 sets)
Lisp (30 sets)
Scala (30 sets)
OCaml (28 sets)
MATLAB (23 sets)
JavaScript (20 sets)
Clojure (14 sets)
Scheme (13 sets)
Go (12 sets)
Objective-C (12 sets)
Groovy (11 sets)
F# (10 sets)
Shell (9 sets)
Lua (8 sets)
ActionScript (7 sets)
AWK (7 sets)
D (4 sets)
Erlang (4 sets)
PL/SQL (4 sets)
Smalltalk (4 sets)
Fortran (3 sets)
PostScript (3 sets)
R (3 sets)
Ada (2 sets)
Factor (2 sets)
Golfscript (2 sets)
LOLCODE (2 sets)
Prolog (2 sets)
Standard ML (2 sets)
TCL (2 sets)
WRAPL (2 sets)
XQuery (2 sets)
Alice (1 set)
Assembly (1 set)
Basic (1 set)
COBOL (1 set)
FALSE (1 set)
FRACTRAN (1 set)
ODS (1 set)
Piet (1 set)
sed (1 set)

Submission Origin

China (1648 contestants)
India (1436 contestants)
United States (851 contestants)
Russia (504 contestants)
Japan (406 contestants)
Brazil (345 contestants)
Poland (245 contestants)
Ukraine (214 contestants)
South Korea (201 contestants)
Canada (188 contestants)
Taiwan (159 contestants)
Australia (151 contestants)
France (150 contestants)
Egypt (136 contestants)
United Kingdom (123 contestants)
Argentina (121 contestants)
Bangladesh (114 contestants)
Germany (114 contestants)
Spain (114 contestants)
Vietnam (112 contestants)
Israel (102 contestants)
Romania (102 contestants)
Indonesia (93 contestants)
Mexico (85 contestants)
Thailand (81 contestants)
Hong Kong (74 contestants)
Hungary (74 contestants)
South Africa (69 contestants)
Colombia (67 contestants)
Italy (67 contestants)
Turkey (66 contestants)
Bulgaria (60 contestants)
Belarus (58 contestants)
Slovakia (57 contestants)
Croatia (51 contestants)
Netherlands (51 contestants)
Portugal (50 contestants)
Czech Republic (49 contestants)
Peru (49 contestants)
Venezuela (44 contestants)
Pakistan (37 contestants)
Sweden (37 contestants)
Lithuania (34 contestants)
Kazakhstan (33 contestants)
Norway (32 contestants)
Greece (29 contestants)
Austria (27 contestants)
Singapore (27 contestants)
Switzerland (27 contestants)
New Zealand (26 contestants)
Latvia (22 contestants)
Denmark (20 contestants)
Chile (19 contestants)
Philippines (19 contestants)
Serbia (19 contestants)
Belgium (18 contestants)
Bolivia (18 contestants)
Estonia (18 contestants)
Georgia (18 contestants)
Malaysia (17 contestants)
Finland (16 contestants)
Sri Lanka (16 contestants)
Iran (15 contestants)
Lebanon (15 contestants)
Moldova (12 contestants)
Slovenia (12 contestants)
Morocco (11 contestants)
Ireland (10 contestants)
Jordan (10 contestants)
Azerbaijan (9 contestants)
Macedonia (9 contestants)
Mongolia (9 contestants)
Armenia (8 contestants)
Dominican Republic (8 contestants)
Kyrgyzstan (7 contestants)
Nigeria (7 contestants)
Guatemala (6 contestants)
Costa Rica (5 contestants)
Cuba (5 contestants)
Ecuador (5 contestants)
Palestinian Territory (5 contestants)
Uruguay (5 contestants)
Bosnia and Herzegovina (4 contestants)
Ghana (4 contestants)
Kenya (4 contestants)
Afghanistan (3 contestants)
Congo (3 contestants)
Ethiopia (3 contestants)
Madagascar (3 contestants)
Rwanda (3 contestants)
Syria (3 contestants)
Togo (3 contestants)
Tunisia (3 contestants)
Uzbekistan (3 contestants)
Zimbabwe (3 contestants)
Andorra (2 contestants)
Cameroon (2 contestants)
El Salvador (2 contestants)
Eritrea (2 contestants)
Iceland (2 contestants)
Namibia (2 contestants)
Nepal (2 contestants)
Senegal (2 contestants)
Algeria (1 contestant)
Aruba (1 contestant)
Bahrain (1 contestant)
Bouvet Island (1 contestant)
Cambodia (1 contestant)
Cyprus (1 contestant)
Honduras (1 contestant)
Ivory Coast (1 contestant)
Jamaica (1 contestant)
Laos (1 contestant)
Malta (1 contestant)
Mozambique (1 contestant)
Nicaragua (1 contestant)
St Vincent & Grenadines (1 contestant)
Sudan (1 contestant)
Trinidad and Tobago (1 contestant)
Turkmenistan (1 contestant)
U.S. Virgin Islands (1 contestant)
Uganda (1 contestant)
Vatican City (1 contestant)