| 比赛 | 2025.1.4 | 评测结果 | RRRRR |
|---|---|---|---|
| 题目名称 | Round #573 (Div. 2) F | 最终得分 | 0 |
| 用户昵称 | 李奇文 | 运行时间 | 1.006 s |
| 代码语言 | C++ | 内存使用 | 3.06 MiB |
| 提交时间 | 2025-01-04 17:49:23 | ||
#include<bits/stdc++.h>
using namespace std;
int n,ans;
struct node{
int x,y;
}e[200005];
bool cmp(node a,node b){
return a.x<=b.x;
}
int main(){
std::cin>>n;
for(int i=1;i<=n;i++){
std::cin>>e[i].x>>e[i].y;
}
sort(e+1,e+1+n,cmp);
ans++;
for(int i=2;i<=n;i++){
if(e[i].x==e[i-1].x){
continue;
}else{
ans++;
}
}
return 0;
}