跳到正文

litianjing

322403

弱小与无知不是生存的障碍,傲慢才是。

在洛谷打开
资料、奖项与版本

资料

编号
322403
抓取

奖项

2024 CSP-S
二等奖
2024 NOIP
三等奖
2023 CSP-S
二等奖
2023 NOIP
二等奖
2022 CSP-S
二等奖

NOIP2024RP++

#include <bits/stdc++.h>

using namespace std; struct clh{

C++
int ltj,lty;
bool operator < (const clh &gzx) const
{
	return lty>gzx.lty;
}

}; priority_queue <clh> q; int main(){

C++
q.push(clh{1,1});
q.push(clh{1,114514});
q.push(clh{1,3});1
while(!q.empty()){
	int u=q.top().lty;
	q.pop();
	printf("%d\n",u);
}
return 0;

}

还没有收录这位用户的文章。