- 博客(13)
- 收藏
- 关注
原创 VSCode+MobaXterm实现在远程服务器上跑代码
本文章主要是在VSCode和MobaXterm的前提下,实现VSCode远程连接服务器,本地文件上传服务器以及对代码进行调试
2023-10-18 18:05:28
5935
1
原创 洛谷P1104 生日
题目链接: 生日 - 洛谷总代码:#include <bits/stdc++.h>using namespace std;struct stu{ int id; string name; int year; int month; int day;}; bool cmp(stu a, stu b){ if(a.year != b.year){ return a.year < b.year; ...
2022-02-15 11:12:34
303
原创 洛谷P1051 谁拿了最多奖学金
链接 :[NOIP2005 提高组] 谁拿了最多奖学金 - 洛谷总代码:#include <bits/stdc++.h>using namespace std;struct stu{ int id; string name; int endScore; int pingScore; char Gan; char west; int Paper; int sumMoney;};bool cmp(...
2022-02-13 19:07:32
327
原创 洛谷P1781 宇宙总统
链接: 宇宙总统 - 洛谷总代码:#include <bits/stdc++.h>using namespace std;struct stu{ int id; string s; int len;};bool cmp(stu a, stu b){ if(a.len == b.len){ return a.s > b.s; }else{ return a.len > b.len..
2022-02-13 19:03:17
342
原创 洛谷P1068 分数线划定
链接:[NOIP2009 普及组] 分数线划定 - 洛谷总代码:#include <bits/stdc++.h>using namespace std;struct stu{ int id; int score;};bool cmp(stu a, stu b){ if(a.score != b.score){ return a.score > b.score; }else{ return a.i
2022-02-13 18:58:49
446
原创 结构体排序
针对结构体排序问题,分三步走:①声明结构体 ② 重新定义排序规则 ③主函数里面的读数据,利用sort()排序,及根据题意输出以例题进行讲解:[NOIP2007 普及组] 奖学金 - 洛谷这道题比较经典,题目较长,但不必害怕!!!输入:先是输入学生总人数,后面每一行分别代表语文,数学,英语的成绩。输出 : 输出前5名学生的学号和总分。①声明结构体,结构体里面定义的变量分别为:语文成绩,数学成绩,英语成绩,题目中还涉及总分,以及学号,故结构体声明如下:#include...
2022-02-13 18:25:45
7610
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人