Round 2: Expensive Dinner

780 correct small sets and 491 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (968 sets)
Java (143 sets)
Python (63 sets)
C# (27 sets)
C (23 sets)
Pascal (17 sets)
Haskell (10 sets)
Ruby (7 sets)
D (4 sets)
OCaml (4 sets)
Clojure (1 set)
Perl (1 set)
PHP (1 set)
WRAPL (1 set)

Submission Origin

China (232 contestants)
Russia (117 contestants)
United States (49 contestants)
Japan (37 contestants)
Taiwan (36 contestants)
Poland (35 contestants)
Ukraine (32 contestants)
India (18 contestants)
Belarus (14 contestants)
South Korea (14 contestants)
Slovakia (13 contestants)
Australia (10 contestants)
Brazil (10 contestants)
Canada (9 contestants)
Vietnam (9 contestants)
France (8 contestants)
Thailand (8 contestants)
Argentina (7 contestants)
Bangladesh (7 contestants)
Hungary (7 contestants)
Romania (7 contestants)
Germany (6 contestants)
Hong Kong (6 contestants)
Iran (6 contestants)
Netherlands (6 contestants)
Croatia (5 contestants)
Indonesia (5 contestants)
United Kingdom (5 contestants)
Bulgaria (4 contestants)
Georgia (4 contestants)
Greece (4 contestants)
South Africa (4 contestants)
Armenia (3 contestants)
Czech Republic (3 contestants)
Israel (3 contestants)
Latvia (3 contestants)
Lithuania (3 contestants)
Serbia (3 contestants)
Singapore (3 contestants)
Sweden (3 contestants)
Kazakhstan (2 contestants)
New Zealand (2 contestants)
Norway (2 contestants)
Spain (2 contestants)
Belgium (1 contestant)
Finland (1 contestant)
Ireland (1 contestant)
Italy (1 contestant)
Kyrgyzstan (1 contestant)
Mexico (1 contestant)
Moldova (1 contestant)
Mongolia (1 contestant)
Peru (1 contestant)
Portugal (1 contestant)
Slovenia (1 contestant)
Sri Lanka (1 contestant)
Switzerland (1 contestant)
Syria (1 contestant)