Round 1B: Stable Neigh-bors

3673 correct small sets and 730 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (2646 sets)
Python (866 sets)
Java (520 sets)
C# (122 sets)
C (41 sets)
Ruby (41 sets)
Haskell (23 sets)
JavaScript (15 sets)
Scala (14 sets)
Go (12 sets)
Kotlin (11 sets)
D (10 sets)
PHP (10 sets)
MATLAB (9 sets)
OCaml (9 sets)
Pascal (6 sets)
Perl (6 sets)
Groovy (4 sets)
Rust (4 sets)
Swift (3 sets)
Visual Basic (3 sets)
Dart (2 sets)
Julia (2 sets)
Objective-C (2 sets)
ALGOL (1 set)
Clojure (1 set)
Elixir (1 set)
F# (1 set)
J (1 set)
Lisp (1 set)
Lua (1 set)
Picat (1 set)
Q (1 set)
R (1 set)
WRAPL (1 set)

Submission Origin

India (418 contestants)
China (408 contestants)
United States (368 contestants)
Russia (301 contestants)
Japan (205 contestants)
South Korea (108 contestants)
Taiwan (108 contestants)
France (105 contestants)
Ukraine (103 contestants)
Poland (95 contestants)
Canada (86 contestants)
Germany (79 contestants)
Brazil (64 contestants)
Vietnam (60 contestants)
Israel (59 contestants)
United Kingdom (57 contestants)
Bangladesh (52 contestants)
Belarus (46 contestants)
Singapore (43 contestants)
Egypt (41 contestants)
Hungary (41 contestants)
Thailand (41 contestants)
Hong Kong (36 contestants)
Romania (35 contestants)
Sweden (35 contestants)
Italy (34 contestants)
Australia (33 contestants)
Indonesia (33 contestants)
Slovakia (33 contestants)
Czech Republic (31 contestants)
Netherlands (30 contestants)
Iran (29 contestants)
Spain (29 contestants)
Belgium (25 contestants)
Greece (24 contestants)
Turkey (23 contestants)
Argentina (22 contestants)
Lithuania (20 contestants)
Switzerland (19 contestants)
South Africa (16 contestants)
Bulgaria (15 contestants)
Portugal (15 contestants)
Armenia (14 contestants)
Croatia (13 contestants)
Finland (12 contestants)
Georgia (11 contestants)
Kazakhstan (11 contestants)
Latvia (11 contestants)
New Zealand (11 contestants)
Austria (9 contestants)
Philippines (9 contestants)
Colombia (8 contestants)
Peru (8 contestants)
Venezuela (8 contestants)
Denmark (7 contestants)
Mexico (7 contestants)
Slovenia (7 contestants)
Jordan (6 contestants)
Moldova (6 contestants)
Morocco (6 contestants)
Serbia (6 contestants)
Tunisia (6 contestants)
Uzbekistan (6 contestants)
Iceland (5 contestants)
Norway (5 contestants)
Bolivia (4 contestants)
Malaysia (4 contestants)
Ethiopia (3 contestants)
Ireland (3 contestants)
Mongolia (3 contestants)
Nepal (3 contestants)
Turkmenistan (3 contestants)
Antarctica (2 contestants)
Azerbaijan (2 contestants)
Chile (2 contestants)
Cuba (2 contestants)
Lebanon (2 contestants)
Macedonia (2 contestants)
Pakistan (2 contestants)
Palestine (2 contestants)
Sri Lanka (2 contestants)
Syria (2 contestants)
? (1 contestant)
Algeria (1 contestant)
British Virgin Islands (1 contestant)
Cyprus (1 contestant)
Dominican Republic (1 contestant)
Guatemala (1 contestant)
Jamaica (1 contestant)
Kyrgyzstan (1 contestant)
Panama (1 contestant)
Saudi Arabia (1 contestant)
Tajikistan (1 contestant)
Uruguay (1 contestant)
Åland Islands (1 contestant)