Round 1A: Play the Dragon

727 correct small sets and 8 correct large sets. View problem statement or contest analysis.

Compact solutions

Solved in...

C++ (564 sets)
Java (72 sets)
Python (63 sets)
C# (9 sets)
JavaScript (3 sets)
OCaml (3 sets)
Scala (3 sets)
C (2 sets)
Go (2 sets)
Kotlin (2 sets)
Ruby (2 sets)
Crystal (1 set)
D (1 set)
F# (1 set)
Factor (1 set)
Haskell (1 set)
Lisp (1 set)
Pascal (1 set)
Picat (1 set)
Rust (1 set)

Submission Origin

China (141 contestants)
United States (108 contestants)
Russia (66 contestants)
Japan (64 contestants)
Canada (30 contestants)
South Korea (26 contestants)
Brazil (24 contestants)
India (20 contestants)
Poland (16 contestants)
Taiwan (16 contestants)
Germany (13 contestants)
Australia (12 contestants)
Belarus (12 contestants)
France (10 contestants)
Hong Kong (9 contestants)
Thailand (9 contestants)
Vietnam (9 contestants)
Singapore (8 contestants)
Ukraine (8 contestants)
Czech Republic (7 contestants)
Egypt (7 contestants)
Israel (7 contestants)
Slovakia (7 contestants)
Argentina (6 contestants)
Indonesia (6 contestants)
Kazakhstan (5 contestants)
New Zealand (5 contestants)
Netherlands (4 contestants)
United Kingdom (4 contestants)
Bangladesh (3 contestants)
Belgium (3 contestants)
Bulgaria (3 contestants)
Hungary (3 contestants)
Iran (3 contestants)
Philippines (3 contestants)
Romania (3 contestants)
Serbia (3 contestants)
Sweden (3 contestants)
? (2 contestants)
Antarctica (2 contestants)
Colombia (2 contestants)
Denmark (2 contestants)
Italy (2 contestants)
Lithuania (2 contestants)
Portugal (2 contestants)
Slovenia (2 contestants)
South Africa (2 contestants)
Spain (2 contestants)
Switzerland (2 contestants)
Armenia (1 contestant)
Austria (1 contestant)
Croatia (1 contestant)
Cyprus (1 contestant)
Dominican Republic (1 contestant)
Finland (1 contestant)
Georgia (1 contestant)
Greece (1 contestant)
Iceland (1 contestant)
Latvia (1 contestant)
Lebanon (1 contestant)
Malaysia (1 contestant)
Mexico (1 contestant)
Moldova (1 contestant)
Peru (1 contestant)
Saudi Arabia (1 contestant)
Syria (1 contestant)
Uzbekistan (1 contestant)
Venezuela (1 contestant)