Qualification Round: Treasure

1359 correct small sets and 141 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (890 sets)
Java (257 sets)
Python (186 sets)
C# (54 sets)
C (27 sets)
Ruby (15 sets)
Haskell (13 sets)
Pascal (9 sets)
Scala (8 sets)
Go (5 sets)
OCaml (5 sets)
Perl (5 sets)
D (3 sets)
Groovy (3 sets)
JavaScript (3 sets)
PHP (3 sets)
AWK (2 sets)
F# (2 sets)
Lua (2 sets)
MATLAB (2 sets)
ActionScript (1 set)
Clojure (1 set)
Haxe (1 set)
Visual Basic (1 set)
WRAPL (1 set)
Xtend (1 set)

Submission Origin

China (188 contestants)
Russia (140 contestants)
United States (140 contestants)
Japan (104 contestants)
Ukraine (50 contestants)
Poland (45 contestants)
India (38 contestants)
Canada (36 contestants)
Taiwan (36 contestants)
France (30 contestants)
Bangladesh (28 contestants)
Australia (27 contestants)
Brazil (27 contestants)
United Kingdom (26 contestants)
South Korea (25 contestants)
Germany (24 contestants)
Egypt (22 contestants)
Israel (18 contestants)
Indonesia (17 contestants)
Spain (17 contestants)
Hong Kong (16 contestants)
Slovakia (16 contestants)
Hungary (15 contestants)
Belarus (14 contestants)
Vietnam (14 contestants)
Argentina (13 contestants)
Romania (13 contestants)
Netherlands (12 contestants)
Thailand (12 contestants)
Mexico (11 contestants)
Bulgaria (10 contestants)
Colombia (9 contestants)
Venezuela (8 contestants)
Croatia (7 contestants)
Finland (7 contestants)
South Africa (7 contestants)
Switzerland (7 contestants)
Belgium (6 contestants)
Czech Republic (6 contestants)
Kazakhstan (6 contestants)
Philippines (6 contestants)
Portugal (6 contestants)
Singapore (6 contestants)
Slovenia (6 contestants)
Iran (5 contestants)
Lithuania (5 contestants)
Sweden (5 contestants)
Bolivia (4 contestants)
Greece (4 contestants)
Italy (4 contestants)
Lebanon (4 contestants)
Norway (4 contestants)
Serbia (4 contestants)
Chile (3 contestants)
Latvia (3 contestants)
Macedonia (3 contestants)
New Zealand (3 contestants)
Peru (3 contestants)
Turkey (3 contestants)
Albania (2 contestants)
Denmark (2 contestants)
Georgia (2 contestants)
Moldova (2 contestants)
Morocco (2 contestants)
Sri Lanka (2 contestants)
Armenia (1 contestant)
Austria (1 contestant)
Azerbaijan (1 contestant)
Bosnia and Herzegovina (1 contestant)
Cuba (1 contestant)
Cyprus (1 contestant)
Estonia (1 contestant)
Ghana (1 contestant)
Ireland (1 contestant)
Kyrgyzstan (1 contestant)
Liberia (1 contestant)
Madagascar (1 contestant)
Mongolia (1 contestant)
Nepal (1 contestant)
North Korea (1 contestant)
Rwanda (1 contestant)
U.S. Virgin Islands (1 contestant)
Uruguay (1 contestant)
Uzbekistan (1 contestant)