P1036-题解(C++代码) 终于接触到结构体数组的排序了,还是用sort函数排序。。。感觉这题的思路有点像参加蓝桥杯比赛的用户注册与参赛记录更新过程,先以此做比程序实现:```cpp#include#includeusingnamespacestd;structnode{intn;//记录比赛的人员编号intcount;//记录 题解列表 2019年08月13日 0 点赞 0 评论 1239 浏览 评分:6.0
P1036-题解(C++代码)(没招啊!!!) 注:这题我做得特别麻烦,不建议大家借鉴我的代码,我代码写得比较乱,我估计你们也看不懂。要是能够有方法给结构体排序,我就有更简洁的方法做。。。如果有更好的方法,欢迎大家在评论区留言。程序实现:```cpp#include#includeusingnamespacestd;inta[200000], 题解列表 2019年08月12日 0 点赞 0 评论 1395 浏览 评分:0.0
P1036 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<cstdlib> #include<algorithm> #includ…… 题解列表 2018年02月25日 0 点赞 0 评论 2024 浏览 评分:0.0