Round 1A: Haircut

2929 correct small sets and 1715 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (3061 sets)
Java (606 sets)
Python (577 sets)
C# (113 sets)
C (58 sets)
Haskell (50 sets)
Ruby (35 sets)
Scala (23 sets)
Go (14 sets)
OCaml (13 sets)
MATLAB (12 sets)
JavaScript (8 sets)
Perl (8 sets)
PHP (8 sets)
D (7 sets)
Lisp (6 sets)
Visual Basic (5 sets)
Racket (4 sets)
Rust (4 sets)
Dart (3 sets)
F# (3 sets)
Julia (3 sets)
Swift (3 sets)
Lua (2 sets)
Pascal (2 sets)
Ceylon (1 set)
Clojure (1 set)
Groovy (1 set)
J (1 set)
Octave (1 set)
R (1 set)
TCL (1 set)

Submission Origin

China (624 contestants)
United States (450 contestants)
Japan (237 contestants)
India (184 contestants)
Russia (121 contestants)
Taiwan (111 contestants)
Canada (108 contestants)
South Korea (82 contestants)
Brazil (71 contestants)
Australia (61 contestants)
France (47 contestants)
Poland (47 contestants)
Hong Kong (46 contestants)
Thailand (45 contestants)
Singapore (42 contestants)
Ukraine (42 contestants)
Germany (38 contestants)
Indonesia (37 contestants)
Bangladesh (35 contestants)
Vietnam (29 contestants)
Egypt (25 contestants)
United Kingdom (25 contestants)
Argentina (24 contestants)
Belarus (23 contestants)
Colombia (19 contestants)
Mexico (18 contestants)
Slovakia (18 contestants)
Hungary (17 contestants)
Czech Republic (15 contestants)
New Zealand (14 contestants)
Iran (13 contestants)
Bulgaria (12 contestants)
Israel (12 contestants)
Portugal (12 contestants)
Romania (12 contestants)
Spain (12 contestants)
Turkey (12 contestants)
Belgium (10 contestants)
Finland (10 contestants)
Italy (10 contestants)
Lithuania (10 contestants)
Netherlands (10 contestants)
Peru (9 contestants)
Sweden (9 contestants)
Philippines (8 contestants)
Venezuela (7 contestants)
Chile (6 contestants)
Greece (6 contestants)
Kazakhstan (6 contestants)
Serbia (6 contestants)
Bolivia (5 contestants)
Lebanon (5 contestants)
Switzerland (5 contestants)
Austria (4 contestants)
Georgia (4 contestants)
Latvia (4 contestants)
South Africa (4 contestants)
Kyrgyzstan (3 contestants)
Malaysia (3 contestants)
Slovenia (3 contestants)
Estonia (2 contestants)
Guatemala (2 contestants)
Iceland (2 contestants)
Luxembourg (2 contestants)
Moldova (2 contestants)
Norway (2 contestants)
Saudi Arabia (2 contestants)
Sri Lanka (2 contestants)
Tunisia (2 contestants)
Unknown or Invalid Region (2 contestants)
Uruguay (2 contestants)
Uzbekistan (2 contestants)
Antarctica (1 contestant)
Armenia (1 contestant)
Cayman Islands (1 contestant)
Croatia (1 contestant)
Cyprus (1 contestant)
Denmark (1 contestant)
Dominican Republic (1 contestant)
Ethiopia (1 contestant)
Greenland (1 contestant)
Jamaica (1 contestant)
Macau (1 contestant)
Macedonia (1 contestant)
Madagascar (1 contestant)
Mongolia (1 contestant)
Morocco (1 contestant)
Pakistan (1 contestant)
Tajikistan (1 contestant)
U.S. Virgin Islands (1 contestant)