Round 2: Rather Perplexing Showdown

2295 correct small sets and 1866 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (3083 sets)
Python (488 sets)
Java (374 sets)
C# (70 sets)
Haskell (32 sets)
Ruby (20 sets)
C (16 sets)
OCaml (13 sets)
JavaScript (6 sets)
Kotlin (6 sets)
Scala (6 sets)
Perl (5 sets)
Erlang (4 sets)
Julia (4 sets)
Lua (4 sets)
MATLAB (4 sets)
Go (3 sets)
Groovy (3 sets)
Lisp (2 sets)
Swift (2 sets)
Clojure (1 set)
PHP (1 set)
Q (1 set)
Visual Basic (1 set)

Submission Origin

China (454 contestants)
Russia (275 contestants)
United States (183 contestants)
Japan (167 contestants)
India (82 contestants)
Taiwan (81 contestants)
South Korea (79 contestants)
Poland (74 contestants)
Ukraine (62 contestants)
Canada (49 contestants)
Belarus (46 contestants)
Brazil (42 contestants)
France (37 contestants)
Germany (36 contestants)
Australia (34 contestants)
Vietnam (33 contestants)
Romania (28 contestants)
Hong Kong (27 contestants)
Hungary (25 contestants)
Iran (24 contestants)
Thailand (24 contestants)
Czech Republic (22 contestants)
Bangladesh (21 contestants)
Egypt (21 contestants)
Slovakia (21 contestants)
Indonesia (19 contestants)
Argentina (18 contestants)
Singapore (18 contestants)
United Kingdom (17 contestants)
Israel (15 contestants)
Netherlands (14 contestants)
Sweden (14 contestants)
Spain (13 contestants)
Bulgaria (12 contestants)
New Zealand (11 contestants)
Belgium (10 contestants)
Italy (10 contestants)
Finland (9 contestants)
Denmark (8 contestants)
Georgia (8 contestants)
Kazakhstan (8 contestants)
Latvia (8 contestants)
Lithuania (8 contestants)
Serbia (8 contestants)
Switzerland (8 contestants)
Turkey (8 contestants)
Greece (7 contestants)
Peru (7 contestants)
Slovenia (7 contestants)
Philippines (6 contestants)
Colombia (5 contestants)
Croatia (5 contestants)
Portugal (5 contestants)
South Africa (5 contestants)
? (4 contestants)
Moldova (4 contestants)
Norway (4 contestants)
Austria (3 contestants)
Kyrgyzstan (3 contestants)
Mexico (3 contestants)
Uzbekistan (3 contestants)
Armenia (2 contestants)
Azerbaijan (2 contestants)
Bolivia (2 contestants)
Dominican Republic (2 contestants)
Estonia (2 contestants)
Iceland (2 contestants)
Lebanon (2 contestants)
Macedonia (2 contestants)
Malaysia (2 contestants)
Saudi Arabia (2 contestants)
Tunisia (2 contestants)
Venezuela (2 contestants)
Antarctica (1 contestant)
Cayman Islands (1 contestant)
Chile (1 contestant)
Cyprus (1 contestant)
Luxembourg (1 contestant)
Panama (1 contestant)
Sint Maarten (1 contestant)
Sri Lanka (1 contestant)
Tajikistan (1 contestant)