Round 1A: Full Binary Tree

1853 correct small sets and 1531 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (2568 sets)
Java (416 sets)
Python (227 sets)
C# (54 sets)
C (30 sets)
Ruby (19 sets)
Haskell (15 sets)
Scala (9 sets)
Go (6 sets)
Pascal (5 sets)
PHP (5 sets)
Kotlin (4 sets)
OCaml (4 sets)
JavaScript (3 sets)
Perl (3 sets)
D (2 sets)
F# (2 sets)
Groovy (2 sets)
MATLAB (2 sets)
CoffeeScript (1 set)
R (1 set)

Submission Origin

China (535 contestants)
United States (198 contestants)
Russia (130 contestants)
Japan (127 contestants)
India (84 contestants)
Taiwan (76 contestants)
Brazil (58 contestants)
Canada (50 contestants)
South Korea (36 contestants)
Australia (31 contestants)
Poland (31 contestants)
Bangladesh (27 contestants)
Thailand (27 contestants)
Ukraine (27 contestants)
Belarus (26 contestants)
Slovakia (24 contestants)
Vietnam (22 contestants)
Argentina (21 contestants)
Hong Kong (21 contestants)
Indonesia (19 contestants)
Egypt (15 contestants)
France (14 contestants)
Germany (14 contestants)
Iran (14 contestants)
Mexico (13 contestants)
Singapore (12 contestants)
Bulgaria (11 contestants)
Czech Republic (11 contestants)
Hungary (10 contestants)
Israel (9 contestants)
Spain (9 contestants)
Colombia (8 contestants)
Finland (7 contestants)
New Zealand (7 contestants)
Peru (7 contestants)
Romania (7 contestants)
Bolivia (6 contestants)
Croatia (6 contestants)
Philippines (6 contestants)
Sweden (6 contestants)
Austria (5 contestants)
Belgium (5 contestants)
Greece (5 contestants)
Kazakhstan (5 contestants)
United Kingdom (5 contestants)
Latvia (4 contestants)
Lebanon (4 contestants)
Lithuania (4 contestants)
Serbia (4 contestants)
Chile (3 contestants)
Dominican Republic (3 contestants)
Netherlands (3 contestants)
Portugal (3 contestants)
Armenia (2 contestants)
Denmark (2 contestants)
Georgia (2 contestants)
Italy (2 contestants)
Jordan (2 contestants)
North Korea (2 contestants)
South Africa (2 contestants)
Sri Lanka (2 contestants)
Turkey (2 contestants)
Venezuela (2 contestants)
Azerbaijan (1 contestant)
Cayman Islands (1 contestant)
Costa Rica (1 contestant)
Estonia (1 contestant)
Iceland (1 contestant)
Ireland (1 contestant)
Jamaica (1 contestant)
Kyrgyzstan (1 contestant)
Macau (1 contestant)
Malaysia (1 contestant)
Norway (1 contestant)
Pakistan (1 contestant)
Rwanda (1 contestant)
Switzerland (1 contestant)
Syria (1 contestant)
Uzbekistan (1 contestant)
Vatican City (1 contestant)
Zimbabwe (1 contestant)