Round 2: Ticket Swapping

1580 correct small sets and 821 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (1747 sets)
Java (289 sets)
Python (212 sets)
C# (37 sets)
C (27 sets)
Haskell (19 sets)
Pascal (17 sets)
Ruby (17 sets)
D (8 sets)
Scala (7 sets)
Perl (4 sets)
OCaml (3 sets)
Clojure (2 sets)
Lisp (2 sets)
Lua (2 sets)
MATLAB (2 sets)
Xtend (2 sets)
Go (1 set)
PHP (1 set)

Submission Origin

China (384 contestants)
Russia (190 contestants)
Japan (124 contestants)
United States (105 contestants)
Poland (72 contestants)
Ukraine (57 contestants)
Taiwan (54 contestants)
South Korea (41 contestants)
Belarus (33 contestants)
India (33 contestants)
Canada (28 contestants)
Brazil (27 contestants)
Australia (22 contestants)
Germany (22 contestants)
France (21 contestants)
Slovakia (20 contestants)
Bangladesh (19 contestants)
Hong Kong (19 contestants)
United Kingdom (19 contestants)
Vietnam (18 contestants)
Indonesia (17 contestants)
Thailand (15 contestants)
Netherlands (14 contestants)
Argentina (13 contestants)
Bulgaria (12 contestants)
Czech Republic (12 contestants)
Egypt (10 contestants)
Croatia (9 contestants)
Belgium (8 contestants)
Hungary (8 contestants)
Iran (8 contestants)
Israel (8 contestants)
Latvia (8 contestants)
South Africa (8 contestants)
Italy (6 contestants)
Kazakhstan (6 contestants)
Lithuania (6 contestants)
New Zealand (6 contestants)
Singapore (6 contestants)
Slovenia (6 contestants)
Sweden (6 contestants)
Switzerland (6 contestants)
Georgia (5 contestants)
Philippines (5 contestants)
Spain (5 contestants)
Finland (4 contestants)
Portugal (4 contestants)
Romania (4 contestants)
Austria (3 contestants)
Greece (3 contestants)
Kyrgyzstan (3 contestants)
Macedonia (3 contestants)
Norway (3 contestants)
Peru (3 contestants)
Sri Lanka (3 contestants)
Turkey (3 contestants)
Armenia (2 contestants)
Dominican Republic (2 contestants)
Malaysia (2 contestants)
Mexico (2 contestants)
Serbia (2 contestants)
Bolivia (1 contestant)
Chile (1 contestant)
Colombia (1 contestant)
Denmark (1 contestant)
Estonia (1 contestant)
Moldova (1 contestant)
Mongolia (1 contestant)
Nepal (1 contestant)
North Korea (1 contestant)
Pakistan (1 contestant)
Tuvalu (1 contestant)
Uzbekistan (1 contestant)
Venezuela (1 contestant)