#include #include using namespace std; struct Person{ Person(int i, int c) { id = i; count = c; } int id; int count; }; list people; typedef list::iterator peopIt; void Fix(peopIt & j) { if (j == people.end()) { j = people.begin(); } } int main() { int i, count; cin >> count; peopIt j; for(i=0;i> length; people.push_back(Person(i+1,length)); } j = people.begin(); while (people.size() > 1) { count = j->count % people.size(); if (count == 0) { count = people.size(); } for(i=1;iid << endl; return 0; }