模拟题,这里不清除map也可以过,题目所给内存大。
满分代码:
#include <bits/stdc++.h>
using namespace std;
struct Node{
int d;
int u;
int r;
};
int n;
map<pair<int,int>,bool> mp;
vector<Node> user;
int main()
{
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
cin >> n;
for(int i=0;i<n;i++){
int ri