文件名称:interview-arrangement
介绍说明--下载内容均来自于网络,请自行研究使用
某IT公司招聘新员工,收到了N份简历,人力资源部小X和小Y负责挑选简历安排面试,他们把N份简历排成了一个圆圈,按逆时针方向编号为1到N。开始时小X站在1号简历前,按逆时针方向数K份简历选中,小Y站在N号简历前,按顺时针方向数M份简历选中。两人同时取走所选简历之后,分别按逆时针和顺时针走到下一份简历前,再重复如上的方法取简历,直到取走所有简历,如果两人选中同一份简历,则只输出一个编号。-An IT company recruiting new employees, received a resume N, Human Resources Department of small X and small Y is responsible for the selection of resume arrangements for the interview, they N resumes arranged in a circle, counterclockwise numbered 1 to N. At the beginning of the small X station in front of resume 1, according to counter-clockwise number of K resume selected, small Y station in the N resume before, according to clockwise direction M number of CV selected. The two selected at the same time removed the resume, respectively, by counterclockwise and clockwise to go before the next resume, and then repeat the above method to take resume, until all the resumes removed, if the two selected the same resume, then only output one Numbering.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
综合性实验7面试安排\Assistance.h
...................\DblNode.h
...................\interview.h
...................\main.cpp
综合性实验7面试安排