求助,为什么60分

P2369 EXCEEDED WARNING A

对不起,发错了。
by Pethly_Cat @ 2019-03-24 11:57:32


题号是[P1478](https://www.luogu.org/problemnew/show/P1478)
by Pethly_Cat @ 2019-03-24 12:05:39


这明显不对啊,应该开结构体再Bool cmp sort(arr,arr+n,cmp)
by Stay_Hungry @ 2019-03-24 12:13:15


@[huangzimeng](/space/show?uid=134066) ```cpp struct node{ int x , y; }arr[ Maxn ]; bool cmp( node a , node b ){ return a.y < b.y; } int main( void ){ int n; cin >> n; for( register int i = 0;i < n;++i ) cin >> arr[i].x >> arr[i].y; sort( arr , arr+n , cmp ); for( register int i = 0;i < n;++i){ …………………………………… } } ```
by Stay_Hungry @ 2019-03-24 12:17:12


@[Destroy_create](https://www.luogu.org/space/show?uid=105922)谢谢
by Pethly_Cat @ 2019-03-24 16:11:29


|