IOI05D - Editorial

PROBLEM LINKS:

Practice
Contest

DIFFICULTY:

Medium

PREREQUISITES:

Math, Cycles

SOLUTION:`

http://olympiads.win.tue.nl/ioi/ioi2005/contest/ioi2005-tasks-and-solutions-a5.pdf

EDITORIALIST’S SOLUTION:

Can be found here.

//