Round 1C: Reordering Train Cars

1522 correct small sets and 516 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (1301 sets)
Java (303 sets)
Python (277 sets)
C# (58 sets)
C (30 sets)
Ruby (21 sets)
Haskell (12 sets)
Scala (8 sets)
Go (4 sets)
D (3 sets)
Groovy (3 sets)
JavaScript (3 sets)
Perl (3 sets)
AWK (2 sets)
Dart (1 set)
F# (1 set)
Julia (1 set)
Lisp (1 set)
Objective-C (1 set)
OCaml (1 set)
Pascal (1 set)
Rust (1 set)
Visual Basic (1 set)

Submission Origin

China (257 contestants)
Russia (143 contestants)
United States (105 contestants)
India (100 contestants)
Japan (89 contestants)
Ukraine (73 contestants)
Taiwan (66 contestants)
Poland (63 contestants)
South Korea (40 contestants)
France (39 contestants)
Germany (28 contestants)
Romania (27 contestants)
Australia (25 contestants)
Belarus (24 contestants)
Hong Kong (24 contestants)
Brazil (23 contestants)
Canada (21 contestants)
Egypt (19 contestants)
Hungary (19 contestants)
Thailand (19 contestants)
United Kingdom (19 contestants)
Iran (14 contestants)
Slovakia (14 contestants)
Bangladesh (13 contestants)
Indonesia (12 contestants)
Netherlands (12 contestants)
Vietnam (12 contestants)
Spain (11 contestants)
Czech Republic (10 contestants)
Israel (10 contestants)
Kazakhstan (9 contestants)
Singapore (9 contestants)
South Africa (9 contestants)
Belgium (8 contestants)
Latvia (8 contestants)
Turkey (8 contestants)
Argentina (7 contestants)
Austria (7 contestants)
Italy (7 contestants)
Lithuania (7 contestants)
Sweden (7 contestants)
Croatia (6 contestants)
Greece (6 contestants)
Mexico (6 contestants)
Philippines (6 contestants)
Switzerland (6 contestants)
Bulgaria (5 contestants)
Finland (5 contestants)
New Zealand (5 contestants)
Portugal (5 contestants)
Estonia (4 contestants)
Georgia (4 contestants)
Norway (4 contestants)
Slovenia (4 contestants)
Azerbaijan (3 contestants)
Denmark (3 contestants)
Lebanon (3 contestants)
Uzbekistan (3 contestants)
Bolivia (2 contestants)
Colombia (2 contestants)
Pakistan (2 contestants)
Venezuela (2 contestants)
Armenia (1 contestant)
Cyprus (1 contestant)
Jamaica (1 contestant)
Kyrgyzstan (1 contestant)
Macedonia (1 contestant)
Madagascar (1 contestant)
Malaysia (1 contestant)
Moldova (1 contestant)
Mongolia (1 contestant)
Morocco (1 contestant)
Nigeria (1 contestant)
Peru (1 contestant)
Rwanda (1 contestant)
Serbia (1 contestant)
Tajikistan (1 contestant)
Tunisia (1 contestant)
Tuvalu (1 contestant)
Western Sahara (1 contestant)
Zambia (1 contestant)