- 博客(9)
- 收藏
- 关注
原创 二轮复习2
#include<stdio.h> #include<string.h> #include<math.h> int main() { int a[3][3], b[3][3], c[3][3]; int i, j, k, n, m, x, y; for (x = 0; x < 3; x++) { for (y = 0; y < 3...
2019-05-05 15:57:08 195
原创 二刷回顾1
#include<stdio.h> #include<string.h> #include<math.h> int main() { int a; int i = 0, d, q,x,n[100]; while (scanf("%d", &a) != EOF) { i = 0; x = a; while (x >= 0) ...
2019-05-05 12:16:24 106
原创 Ad
#include<stdio.h> int main() { int i, n, m; scanf("%d %d", &n, &m); int r = 0; for (i = 2; i <= n; i++) { r = (r + m) % i; } printf("%d\n", r + 1); return 0; }
2019-04-27 21:51:34 309
转载 综合
在这里插入代码片 #include<stdio.h> int main() { int n,x,i,sum=0; //天数 scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &x); sum = 2 * x*(x - 1) + 1; //核心代码 等差数列前N-1项和的2...
2019-04-27 21:45:36 105
原创 函数数组
#include<stdio.h> #include<algorithm> using namespace std; bool compare(int a,int b) { return a>b; } int s[20]; int serch(int k) { int low,mid,high; low=0; high=14; ...
2019-04-21 23:25:44 5409 1
原创 实验3
#include<stdio.h> int main() { float x,sum,d; while (scanf("%f", &x) != EOF) { //这句不能写错写成~的那个结果是错的不知道为什么 if (x < 1000 && x >= 0) { d = 1; sum = x * d; printf...
2019-04-18 23:16:48 191
原创 游程编码
#include<stdio.h> #include <string.h> int main() { char input[128]; while(~scanf("%s",input)) { char output[128]; memset(output,'\0',sizeof(output)); int p=0; char now=input[...
2019-04-18 12:31:00 2033
原创 转专业题库
转专业题库 int main() { char a[100]; int b[26] = { 0 }; int max = 0, i, n, p = 0; scanf("%d",&n); scanf("%s", a); for (i = 0; i < n; i++) { b[a[i] - 'a']++; } for (i = 0; i < 26; i++) {...
2019-04-17 23:20:28 828
原创 实验2
#include<stdio.h> int main() { int a, b; char c; scanf("%d%c%d", &a,&c, &b); switch (c) { case '+':printf("%d+%d=%d",a,b, a + b); break; case '-':printf("%d-%d=%d",a,b,a ...
2019-04-17 23:19:13 164
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人