Dream_coding
Dream_coding
全部文章
分类
c||c++(202)
人工智能(1)
大学科目(3)
计算机组成原理(1)
计算机网络(3)
课外学习(22)
题解(7)
归档
标签
去牛客网
登录
/
注册
Dream_coding的博客
全部文章
(共239篇)
求阶乘!!!(要计算只含加法,减法和乘法的整数表达式除以正整数n的余数,可以在每步计算之后对n取余,结果不变。)
#include<stdio.h> int main(){ int n,s=0; scanf("%d",&n); for(int i=1;i<=n;i++) { int factorial =1; for(int j=1;j<=i;...
2020-05-06
0
870
输入一些整数,求最大值最小值和平均值
#include<stdio.h> int main(){ int x,n=0,min,max,s=0; while(scanf("%d",&x)==1) { s+=1; if(x<min) min=x; if(x>max) ...
2020-05-06
0
541
前m大的数
前m大的数 #include<bits/stdc++.h> int a[3005],b[5000000]; bool cmp(int a,int b) { return a>b;//从大到小进行排序 } using namespace std; int main() { in...
2020-05-06
0
521
稳定排序
稳定排序 #include <iostream> #include <vector>//STL容器 #include <algorithm> #include <string> using namespace std; struct List//...
2020-05-06
0
619
开门人和关门人
开门人和关门人 #include<iostream> #include<string> #include<deque> using namespace std; int main() { int m,n,i; deque...
2020-05-06
0
429
EXCEL排序
EXCEL排序 #include<algorithm> #include<stdio.h> using namespace std; int C; struct ssss { char a[10],b[10]; int c; }ss[111111]; b...
2020-05-06
0
520
统计同成绩学生人数
统计同成绩学生人数 #include<iostream> using namespace std; int main() { int n; int p[10000]; while(cin>>n,n) { int m; for(int i=0;i<...
2020-05-06
0
421
What Is Your Grade?
What Is Your Grade? #include <stdio.h> #include <algorithm> #include <string.h> using namespace std; struct node { int list; //原来...
2020-05-06
0
517
Magical Bamboos
Magical Bamboos #include<stdio.h> #include<algorithm> using namespace std; bool cmp(int a,int b) { return a>b; } const int MAXN =1...
2020-05-06
0
494
Bear and Three Balls
Bear and Three Balls #include<stdio.h> #include<algorithm> using namespace std; int b[60],a[60]; int main() { int n,i; int num=0; ...
2020-05-06
0
500
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页