ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1779
. The Great Team
Easy problem.
Posted by
Gleb_Kazantaev(NNSTU)
18 Nov 2014 13:53
Some hint:
For n = 4
1 : (1,2), (1,3), (1,4);
2 : (2,1), (2,3);
3 : (3,1), (3,2);
4 : (4,1);
1st have 3 friends, 2nd have 2 friends, 3d have 2 friends, 4fth have 1 friend, so ans is
4
1 2
1 3
1 4
2 3
© 2000–2024
Timus Online Judge Team
. All rights reserved.