MCPcopy Create free account
hub / github.com/MathProgrammer/CodeForces / make_winner_list

Function make_winner_list

C Programs/C Programs - 2/Spider_Man.c:30–47  ·  view source on GitHub ↗

A move in the game is equivalent to deleting an edge from a graph with n vertices where there's an edge between consecutive numbers. 1-2-3...-n. There is no edge in between n and 1 because deleting it creates no new graphs. The number of edges id v - 1, where v is the number of vertices. The number of edges reduces by 1 in every move. If the number of edges is even (0 included), Player 2 wins.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected