Round 1B: Tide Goes In, Tide Goes Out

682 correct small sets and 619 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (939 sets)
Java (196 sets)
Python (88 sets)
C# (27 sets)
C (17 sets)
Pascal (8 sets)
Ruby (8 sets)
Objective-C (4 sets)
Scala (4 sets)
D (2 sets)
Haskell (2 sets)
MATLAB (2 sets)
PHP (2 sets)
Visual Basic (2 sets)

Submission Origin

China (122 contestants)
Russia (113 contestants)
United States (47 contestants)
Japan (40 contestants)
Poland (36 contestants)
Ukraine (33 contestants)
Belarus (19 contestants)
South Korea (14 contestants)
Brazil (13 contestants)
Netherlands (13 contestants)
Hong Kong (11 contestants)
Slovakia (11 contestants)
Taiwan (10 contestants)
Bulgaria (9 contestants)
Canada (9 contestants)
Hungary (9 contestants)
France (8 contestants)
Germany (8 contestants)
South Africa (8 contestants)
Spain (8 contestants)
Egypt (7 contestants)
Indonesia (7 contestants)
Sweden (7 contestants)
Vietnam (7 contestants)
Argentina (6 contestants)
Croatia (6 contestants)
Czech Republic (6 contestants)
India (6 contestants)
United Kingdom (6 contestants)
... (5 contestants)
Italy (5 contestants)
Romania (5 contestants)
Australia (4 contestants)
Kazakhstan (4 contestants)
Latvia (4 contestants)
Lithuania (4 contestants)
Slovenia (4 contestants)
Bangladesh (3 contestants)
Belgium (3 contestants)
Finland (3 contestants)
Georgia (3 contestants)
Portugal (3 contestants)
Thailand (3 contestants)
Austria (2 contestants)
Iran (2 contestants)
Israel (2 contestants)
Kyrgyzstan (2 contestants)
Lebanon (2 contestants)
Mexico (2 contestants)
Norway (2 contestants)
Serbia (2 contestants)
Switzerland (2 contestants)
Armenia (1 contestant)
Colombia (1 contestant)
Denmark (1 contestant)
Estonia (1 contestant)
Macedonia (1 contestant)
Moldova (1 contestant)
Mongolia (1 contestant)
Palestinian Territory (1 contestant)
Philippines (1 contestant)
Sri Lanka (1 contestant)
Turkey (1 contestant)
Venezuela (1 contestant)