21156 A Rank Problem 문제풀이 #include #include #include using namespace std; void fast_io(void) { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } int main() { fast_io(); list l; std::list::iterator it; int n, m; cin >> n >> m; for (int i = 1; i > a >> b; int winner = stoi(a.substr(1)); int loser = stoi(b.substr(1)); int i = 0, ck = 0; for (auto it = l.begin(); it != l.end(); it++..