Round 1C: Bribe the Prisoners

1061 correct small sets and 302 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (898 sets)
Java (174 sets)
Python (120 sets)
C# (68 sets)
C (28 sets)
Pascal (23 sets)
Ruby (14 sets)
PHP (11 sets)
Perl (8 sets)
Haskell (5 sets)
MATLAB (3 sets)
Lisp (2 sets)
Scala (2 sets)
ActionScript (1 set)
Basic (1 set)
Clojure (1 set)
D (1 set)
Maple (1 set)
OCaml (1 set)
Scheme (1 set)

Submission Origin

China (176 contestants)
India (105 contestants)
Russia (90 contestants)
United States (79 contestants)
Japan (47 contestants)
Poland (41 contestants)
Ukraine (41 contestants)
Australia (30 contestants)
Brazil (30 contestants)
South Korea (25 contestants)
Romania (23 contestants)
Bulgaria (19 contestants)
Egypt (18 contestants)
Hungary (16 contestants)
Indonesia (15 contestants)
Taiwan (15 contestants)
Germany (14 contestants)
Bangladesh (12 contestants)
Belarus (12 contestants)
Vietnam (12 contestants)
Singapore (11 contestants)
Spain (11 contestants)
United Kingdom (11 contestants)
Hong Kong (10 contestants)
Czech Republic (9 contestants)
Georgia (9 contestants)
Italy (9 contestants)
Portugal (9 contestants)
South Africa (9 contestants)
Thailand (9 contestants)
Canada (8 contestants)
France (8 contestants)
Argentina (7 contestants)
Netherlands (7 contestants)
Croatia (6 contestants)
Lithuania (6 contestants)
Mexico (6 contestants)
Sweden (6 contestants)
Switzerland (6 contestants)
Austria (5 contestants)
Israel (5 contestants)
Pakistan (5 contestants)
Serbia (5 contestants)
Turkey (5 contestants)
Venezuela (5 contestants)
Finland (4 contestants)
Kazakhstan (4 contestants)
Slovakia (4 contestants)
Armenia (3 contestants)
Colombia (3 contestants)
Denmark (3 contestants)
Latvia (3 contestants)
Sri Lanka (3 contestants)
Belgium (2 contestants)
Estonia (2 contestants)
Lebanon (2 contestants)
Morocco (2 contestants)
New Zealand (2 contestants)
Peru (2 contestants)
Philippines (2 contestants)
Bosnia and Herzegovina (1 contestant)
Ethiopia (1 contestant)
Ghana (1 contestant)
Greece (1 contestant)
Guatemala (1 contestant)
Macedonia (1 contestant)
Malaysia (1 contestant)
Moldova (1 contestant)
Namibia (1 contestant)
Nigeria (1 contestant)
Puerto Rico (1 contestant)
Slovenia (1 contestant)
Uruguay (1 contestant)