Enter
|
Register
Home
Top
Catalog
Contests
Gym
Problemset
Groups
Rating
Edu
API
Calendar
Help
→ Pay attention
Before contest
Codeforces Round 959 sponsored by NEAR (Div. 1 + Div. 2)
08:10:57
Register now »
*has extra registration
→ Filter Problems
Difficulty:
—
combine-tags-by-or
*combine tags by OR
2-sat
binary search
bitmasks
brute force
chinese remainder theorem
combinatorics
constructive algorithms
data structures
dfs and similar
divide and conquer
dp
dsu
expression parsing
fft
flows
games
geometry
graph matchings
graphs
greedy
hashing
implementation
interactive
math
matrices
meet-in-the-middle
number theory
probabilities
schedules
shortest paths
sortings
string suffix structures
strings
ternary search
trees
two pointers
Add tag
Main
acmsguru
|
Problems
Submit
Status
Standings
Custom test
Problems
#
Name
1674G
Remove Directed Edges
dfs and similar
,
dp
,
graphs
2000
x2429
1674E
Breaking the Wall
binary search
,
brute force
,
constructive algorithms
,
greedy
,
math
2000
x6267
1673F
Anti-Theft Road Planning
bitmasks
,
constructive algorithms
,
divide and conquer
,
greedy
,
interactive
,
math
2400
x787
1673E
Power or XOR?
bitmasks
,
combinatorics
,
math
,
number theory
2500
x689
1672F1
Array Shuffling
constructive algorithms
,
graphs
,
greedy
2000
x3028
1672E
notepad.exe
binary search
,
constructive algorithms
,
greedy
,
interactive
2200
x2114
1671E
Preorder
combinatorics
,
divide and conquer
,
dp
,
dsu
,
hashing
,
sortings
,
trees
2100
x2684
1670F
Jee, You See?
bitmasks
,
combinatorics
,
dp
2400
x939
1670E
Hemose on the Tree
bitmasks
,
constructive algorithms
,
dfs and similar
,
trees
2200
x1710
1667C
Half Queen Cover
constructive algorithms
,
math
2400
x1542
1667B
Optimal Partition
data structures
,
dp
2100
x3586
1666J
Job Lookup
constructive algorithms
,
dp
,
shortest paths
,
trees
2100
x1302
1666I
Interactive Treasure Hunt
brute force
,
constructive algorithms
,
geometry
,
interactive
,
math
2200
x1399
1666F
Fancy Stack
combinatorics
,
dp
,
implementation
2200
x1130
1666E
Even Split
binary search
,
constructive algorithms
,
greedy
,
math
2500
x690
1665E
MinimizOR
bitmasks
,
brute force
,
data structures
,
divide and conquer
,
greedy
,
implementation
,
two pointers
2500
x1478
1665D
GCD Guess
bitmasks
,
chinese remainder theorem
,
constructive algorithms
,
games
,
interactive
,
math
,
number theory
2000
x3795
1661E
Narrow Components
brute force
,
data structures
,
dp
,
dsu
,
math
,
trees
2500
x932
1660F2
Promising String (hard version)
data structures
,
implementation
,
math
,
strings
2100
x2656
1659E
AND-MEX Walk
bitmasks
,
brute force
,
constructive algorithms
,
dfs and similar
,
dsu
,
graphs
2200
x1499
1658E
Gojou and Matrix Game
data structures
,
dp
,
games
,
hashing
,
implementation
,
math
,
number theory
,
sortings
2500
x1031
1658D2
388535 (Hard Version)
bitmasks
,
brute force
,
data structures
,
math
2300
x2473
1657E
Star MST
combinatorics
,
dp
,
graph matchings
,
math
2200
x2026
1657D
For Gamers. By Gamers.
binary search
,
brute force
,
greedy
,
math
,
sortings
2000
x4770
1656E
Equal Tree Sums
constructive algorithms
,
dfs and similar
,
math
,
trees
2200
x3366
1654E
Arithmetic Operations
brute force
,
data structures
,
graphs
,
math
2300
x2024
1654D
Potion Brewing Class
dfs and similar
,
math
,
number theory
,
trees
2100
x2808
1650G
Counting Shortcuts
data structures
,
dfs and similar
,
dp
,
graphs
,
shortest paths
2100
x2369
1650F
Vitaly and Advanced Useless Algorithms
dp
,
greedy
,
implementation
2200
x1413
1647E
Madoka and the Sixth-graders
data structures
,
dfs and similar
,
greedy
2500
x970
1646E
Power Board
brute force
,
dp
,
math
,
number theory
2200
x2337
1646D
Weight the Tree
constructive algorithms
,
dfs and similar
,
dp
,
implementation
,
trees
2000
x3637
1641C
Anonymity Is Important
binary search
,
brute force
,
data structures
,
dsu
,
greedy
,
sortings
2200
x2371
1641B
Repetitions Decoding
constructive algorithms
,
implementation
,
sortings
2000
x3764
1638E
Colorful Operations
brute force
,
data structures
,
implementation
2400
x1845
1638D
Big Brush
constructive algorithms
,
data structures
,
greedy
,
implementation
2000
x4125
1637F
Towers
constructive algorithms
,
dfs and similar
,
dp
,
greedy
,
trees
2500
x1727
1637E
Best Pair
binary search
,
brute force
,
implementation
2100
x3227
1635E
Cars
2-sat
,
constructive algorithms
,
dfs and similar
,
dsu
,
graphs
,
greedy
,
sortings
2200
x2191
1634E
Fair Share
constructive algorithms
,
data structures
,
dfs and similar
,
graph matchings
,
graphs
2400
x1634
1634D
Finding Zero
constructive algorithms
,
interactive
,
math
2000
x4291
1633E
Spanning Tree Queries
binary search
,
data structures
,
dfs and similar
,
dsu
,
graphs
,
greedy
,
math
,
sortings
,
trees
2400
x1480
1632E1
Distance Tree (easy version)
binary search
,
data structures
,
dfs and similar
,
graphs
,
shortest paths
,
trees
2400
x1129
1632D
New Year Concert
binary search
,
data structures
,
greedy
,
math
,
number theory
,
two pointers
2000
x4558
1630D
Flipping Range
constructive algorithms
,
dp
,
greedy
,
number theory
2400
x1550
1630C
Paint the Middle
dp
,
greedy
,
sortings
,
two pointers
2200
x2897
1628D2
Game on Sum (Hard Version)
combinatorics
,
dp
,
games
,
math
2400
x2016
1628D1
Game on Sum (Easy Version)
combinatorics
,
dp
,
games
,
math
2100
x3071
1628C
Grid Xor
constructive algorithms
,
greedy
,
implementation
,
interactive
,
math
2300
x3124
1627E
Not Escaping
data structures
,
dp
,
implementation
,
shortest paths
,
two pointers
2200
x2292
1626E
Black and White Tree
dfs and similar
,
greedy
,
trees
2400
x1538
1626D
Martial Arts Tournament
binary search
,
brute force
,
greedy
,
math
2100
x3845
1625E1
Cats on the Upgrade (easy version)
brute force
,
data structures
,
dfs and similar
,
divide and conquer
,
dp
,
graphs
,
trees
2500
x1012
1625D
Binary Spiders
bitmasks
,
data structures
,
implementation
,
math
,
sortings
,
trees
2300
x2006
1624F
Interacdive Problem
binary search
,
constructive algorithms
,
interactive
2000
x3232
1624E
Masha-forgetful
brute force
,
constructive algorithms
,
dp
,
hashing
,
implementation
,
strings
2000
x4023
1623E
Middle Duplication
data structures
,
dfs and similar
,
greedy
,
strings
,
trees
2500
x1084
1623D
Robot Cleaner Revisit
implementation
,
math
,
probabilities
2300
x1358
1622E
Math Test
bitmasks
,
brute force
,
greedy
2200
x1865
1622D
Shuffle
combinatorics
,
math
,
two pointers
2000
x3948
1621E
New School
binary search
,
data structures
,
dp
,
greedy
,
implementation
,
sortings
2300
x1740
1621D
The Winter Hike
constructive algorithms
,
greedy
,
math
2100
x4005
1620G
Subsequences Galore
bitmasks
,
combinatorics
,
dp
2400
x874
1620D
Exact Change
brute force
,
constructive algorithms
,
greedy
2000
x4107
1619H
Permutation and Queries
brute force
,
data structures
,
divide and conquer
,
two pointers
2400
x1107
1619G
Unusual Minesweeper
binary search
,
dfs and similar
,
dsu
,
greedy
,
sortings
2000
x2351
1619F
Let's Play the Hat?
brute force
,
constructive algorithms
,
greedy
,
math
2000
x2063
1618G
Trader Problem
data structures
,
dsu
,
greedy
,
sortings
2200
x1518
1618F
Reverse
bitmasks
,
constructive algorithms
,
dfs and similar
,
implementation
,
math
,
strings
2000
x4137
1617D2
Too Many Impostors (hard version)
constructive algorithms
,
implementation
,
interactive
,
math
2400
x1744
1616E
Lexicographically Small Enough
brute force
,
data structures
,
greedy
,
strings
2200
x2456
1616D
Keep the Average High
dp
,
greedy
,
math
2000
x4801
1615E
Purple Crayon
data structures
,
dfs and similar
,
games
,
graphs
,
greedy
,
math
,
sortings
,
trees
2400
x1420
1615D
X(or)-mas Tree
bitmasks
,
dfs and similar
,
dsu
,
graphs
,
trees
2200
x1859
1614D2
Divan and Kostomuksha (hard version)
dp
,
number theory
2300
x2251
1614D1
Divan and Kostomuksha (easy version)
dp
,
number theory
2100
x3763
1613E
Crazy Robot
dfs and similar
,
graphs
2000
x5072
1612G
Max Sum Array
combinatorics
,
constructive algorithms
,
greedy
,
sortings
2500
x821
1612E
Messages
brute force
,
dp
,
greedy
,
probabilities
,
sortings
2000
x2432
1611G
Robot and Candies
data structures
,
graph matchings
,
greedy
2500
x633
1610E
AmShZ and G.O.A.T.
binary search
,
brute force
,
greedy
,
implementation
,
math
2300
x1646
1610D
Not Quite Lee
combinatorics
,
dp
,
math
,
number theory
2000
x2653
1609E
William The Oblivious
bitmasks
,
data structures
,
dp
,
matrices
2400
x1971
1608D
Dominoes
combinatorics
,
fft
,
graphs
,
math
,
number theory
2400
x1365
1607H
Banquet Preparations 2
greedy
,
sortings
,
two pointers
2200
x1213
1607G
Banquet Preparations 1
greedy
2200
x1535
1607F
Robot on the Board 2
brute force
,
dfs and similar
,
graphs
,
implementation
2300
x1904
1606E
Arena
combinatorics
,
dp
,
math
2100
x3433
1606D
Red-Blue Matrix
brute force
,
constructive algorithms
,
implementation
,
sortings
2400
x1415
1605E
Array Equalizer
binary search
,
greedy
,
implementation
,
math
,
number theory
,
sortings
,
two pointers
2400
x1016
1605D
Treelabeling
bitmasks
,
constructive algorithms
,
dfs and similar
,
games
,
greedy
,
implementation
,
trees
2100
x2867
1603C
Extreme Extension
dp
,
greedy
,
math
,
number theory
2300
x2004
1601C
Optimal Insertion
data structures
,
divide and conquer
,
dp
,
greedy
,
sortings
2300
x1962
1600F
Party Organization
brute force
,
math
,
probabilities
2300
x466
1599H
Hidden Fortress
interactive
,
math
2100
x1031
1599C
Bubble Strike
combinatorics
,
math
,
probabilities
,
ternary search
2000
x1623
1598F
RBS
binary search
,
bitmasks
,
brute force
,
data structures
,
dp
2400
x1395
1598E
Staircases
brute force
,
combinatorics
,
data structures
,
dfs and similar
,
dp
,
implementation
,
math
2100
x2268
1594F
Ideal Farm
constructive algorithms
,
math
2400
x1282
1594E2
Rubik's Cube Coloring (hard version)
brute force
,
dp
,
implementation
,
math
,
trees
2300
x1461
←
1
2
3
4
5
6
7
...
23
24
→
User lists
Name