- 博客(5)
- 收藏
- 关注
原创 排序····(我知道,再睡、水一下,结构体)
#include <bits/stdc++.h>using namespace std;struct student{int ID;string name;int age; };struct student num[1000];bool guize(student x, student y ){if( x.age > y.age) return true;...
2019-07-26 19:10:45
94
原创 额 排序函数(好吧。挂一下代码)
#include <bits/stdc++.h>using namespace std;int num[]={2,452,5,35,5,35,355,66};bool guize(int x, int y ){if( x>y) return true;else return false;}int main(){sort( num+0, num+8, guize...
2019-07-26 19:03:38
139
原创 洛谷p1217
题目来源 #include<bits/stdc++.h> using namespace std; int su(int y){ int m=y; int s=true; for(int i=2;i<y;i++) { if(y%i==0) { s=false; break; } } return s; } in...
2019-07-03 17:13:47
331
3
原创 洛谷p1149
来源https://www.luogu.org/problemnew/show/P1149代码#include<bits/stdc++.h>using namespace std;int a[10]={6,2,5,5,4,5,6,3,7,6};int ds[10000]={6};int main(){ int s; cin>>s; ...
2019-07-03 17:00:58
224
1
原创 ## 洛谷p1605 迷宫
洛谷p1605 迷宫来源#include<bits/stdc++.h>using namespace std;int a[1000];int b[1000];int ds[1000][1000];int lei=0;int sx,sy,fx,fy;int n,m,t;void tiao(int x,int y){if(x==fx&&y==fy)...
2019-07-03 16:53:08
122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人