Qualification Round: Counting Sheep

26558 correct small sets and 25729 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (22393 sets)
Java (11132 sets)
Python (10923 sets)
C (2059 sets)
C# (1859 sets)
Ruby (754 sets)
JavaScript (570 sets)
PHP (352 sets)
Haskell (301 sets)
Go (286 sets)
Scala (271 sets)
Perl (147 sets)
MATLAB (112 sets)
Swift (91 sets)
Rust (77 sets)
Clojure (60 sets)
OCaml (57 sets)
Pascal (57 sets)
Groovy (49 sets)
Objective-C (45 sets)
Visual Basic (41 sets)
Kotlin (39 sets)
Lua (37 sets)
R (34 sets)
D (32 sets)
Lisp (32 sets)
F# (23 sets)
Julia (23 sets)
Elixir (18 sets)
Shell (18 sets)
CoffeeScript (14 sets)
Dart (14 sets)
Erlang (14 sets)
Racket (14 sets)
TCL (10 sets)
TypeScript (10 sets)
Scheme (6 sets)
AWK (5 sets)
Q (5 sets)
Crystal (4 sets)
Picat (4 sets)
PL/SQL (4 sets)
PowerShell (4 sets)
bc (3 sets)
J (3 sets)
ActionScript (2 sets)
AppleScript (2 sets)
Befunge (2 sets)
Factor (2 sets)
Mathematica (2 sets)
Maxima (2 sets)
Processing (2 sets)
Prolog (2 sets)
Smalltalk (2 sets)
WRAPL (2 sets)
A (1 set)
Agda (1 set)
Assembly (1 set)
Basic (1 set)
CJam (1 set)
COBOL (1 set)
dc (1 set)
Fortran (1 set)
Golfscript (1 set)
HSP (1 set)
XQuery (1 set)

Submission Origin

India (6137 contestants)
United States (3656 contestants)
China (1972 contestants)
Russia (960 contestants)
South Korea (823 contestants)
Canada (769 contestants)
Japan (714 contestants)
Brazil (606 contestants)
France (573 contestants)
Bangladesh (534 contestants)
Taiwan (496 contestants)
Egypt (486 contestants)
Ukraine (450 contestants)
Poland (390 contestants)
Germany (367 contestants)
Australia (365 contestants)
United Kingdom (314 contestants)
Thailand (288 contestants)
Spain (273 contestants)
Pakistan (254 contestants)
Indonesia (248 contestants)
Colombia (246 contestants)
Vietnam (246 contestants)
Singapore (243 contestants)
Mexico (234 contestants)
Romania (229 contestants)
Hong Kong (220 contestants)
Israel (217 contestants)
Italy (215 contestants)
Turkey (171 contestants)
Hungary (162 contestants)
Netherlands (160 contestants)
Iran (150 contestants)
Belarus (145 contestants)
Argentina (144 contestants)
Sweden (136 contestants)
Greece (134 contestants)
South Africa (129 contestants)
Slovakia (128 contestants)
New Zealand (121 contestants)
Czech Republic (111 contestants)
Belgium (105 contestants)
Portugal (103 contestants)
Kazakhstan (93 contestants)
Switzerland (92 contestants)
Sri Lanka (84 contestants)
Bulgaria (81 contestants)
Peru (79 contestants)
Bolivia (74 contestants)
Tunisia (73 contestants)
Nigeria (67 contestants)
Morocco (64 contestants)
Croatia (59 contestants)
? (58 contestants)
Philippines (58 contestants)
Venezuela (54 contestants)
Lithuania (53 contestants)
Austria (52 contestants)
Denmark (50 contestants)
Malaysia (42 contestants)
Chile (41 contestants)
Norway (41 contestants)
Georgia (40 contestants)
Slovenia (39 contestants)
Ireland (36 contestants)
Serbia (35 contestants)
Cameroon (34 contestants)
Jordan (34 contestants)
Estonia (31 contestants)
Finland (31 contestants)
Moldova (30 contestants)
Azerbaijan (28 contestants)
Armenia (26 contestants)
Latvia (26 contestants)
Nepal (26 contestants)
Lebanon (25 contestants)
Algeria (24 contestants)
Kenya (23 contestants)
Uzbekistan (23 contestants)
Iceland (20 contestants)
Palestine (19 contestants)
Macedonia (18 contestants)
Uruguay (17 contestants)
Benin (14 contestants)
Mongolia (13 contestants)
Ethiopia (12 contestants)
Kyrgyzstan (12 contestants)
Turkmenistan (12 contestants)
Albania (11 contestants)
Jamaica (11 contestants)
Saudi Arabia (11 contestants)
Kosovo (10 contestants)
Cyprus (9 contestants)
Syria (9 contestants)
United Arab Emirates (9 contestants)
Costa Rica (8 contestants)
Dominican Republic (8 contestants)
Macau (8 contestants)
Tajikistan (8 contestants)
Ecuador (7 contestants)
Ghana (7 contestants)
Malta (7 contestants)
Zimbabwe (7 contestants)
Guatemala (6 contestants)
Afghanistan (5 contestants)
Antarctica (5 contestants)
Bosnia and Herzegovina (5 contestants)
Cambodia (5 contestants)
Kuwait (5 contestants)
Luxembourg (5 contestants)
Nicaragua (5 contestants)
Paraguay (5 contestants)
Togo (5 contestants)
Senegal (4 contestants)
Andorra (3 contestants)
Cuba (3 contestants)
Guadeloupe (3 contestants)
Haiti (3 contestants)
Puerto Rico (3 contestants)
Rwanda (3 contestants)
Trinidad and Tobago (3 contestants)
Yemen (3 contestants)
Bahrain (2 contestants)
Congo (2 contestants)
Gabon (2 contestants)
Ivory Coast (2 contestants)
Lesotho (2 contestants)
Mali (2 contestants)
Mauritius (2 contestants)
Mozambique (2 contestants)
Namibia (2 contestants)
Oman (2 contestants)
Réunion (2 contestants)
Tanzania (2 contestants)
U.S. Minor Outlying Islands (2 contestants)
U.S. Virgin Islands (2 contestants)
Zambia (2 contestants)
Åland Islands (2 contestants)
Angola (1 contestant)
Anguilla (1 contestant)
Bhutan (1 contestant)
Botswana (1 contestant)
Brunei (1 contestant)
Burundi (1 contestant)
Cayman Islands (1 contestant)
Eritrea (1 contestant)
French Polynesia (1 contestant)
Greenland (1 contestant)
Guernsey (1 contestant)
Guinea (1 contestant)
Isle of Man (1 contestant)
Liechtenstein (1 contestant)
Madagascar (1 contestant)
Marshall Islands (1 contestant)
Montenegro (1 contestant)
Myanmar (1 contestant)
New Caledonia (1 contestant)
North Korea (1 contestant)
Panama (1 contestant)
Papua New Guinea (1 contestant)
Qatar (1 contestant)
Saint Barthélemy (1 contestant)
Sint Maarten (1 contestant)
Somalia (1 contestant)
Tonga (1 contestant)
Vatican City (1 contestant)
Wallis and Futuna (1 contestant)
Western Sahara (1 contestant)