水瓶water_ping
水瓶water_ping
全部文章
题解
归档
标签
去牛客网
登录
/
注册
水瓶water_ping的博客
全部文章
/ 题解
(共12篇)
题解 | #有序序列合并#
//BC100 有序序列合并 #include <stdio.h> #include <stdlib.h> int main(void) { int n, m, i, j, k = 0; scanf("%d %d", &n, &m); int* arr...
C
2022-01-23
6
583
题解 | #记负均正#
//HJ97 记负均正 #include <stdio.h> int main(void) { int n; while (~scanf("%d", &n)) { int num, i, count1 = 0, count2 = 0, count = 0; floa...
C
2022-01-17
0
358
题解 | #等差数列#
//HJ100 等差数列 #include <stdio.h> int main(void) { int n = 0; while (~scanf("%d", &n)) { //等差求和:sn=n*a1+((n*(n-1)/2)*d printf("%d\n", n...
C
2022-01-17
1
340
题解 | #尼科彻斯定理#
//HJ76 尼科彻斯定理 #include <stdio.h> int main(void) { int m, a1, i; while (~scanf("%d", &m)) { a1 = m * (m - 1) + 1;//立方项可以表示为一...
C
2022-01-16
0
273
题解 | #简单计算器#
#include <stdio.h> int main(void) { double num1 = 0.0, num2 = 0.0;//float精度不够 char ch = '0'; scanf("%lf %c %lf", &num1, &ch, &nu...
C
2022-01-09
0
347
题解 | #字母大小写转换#
#include <stdio.h> int main(void) { int ch = 0; while (scanf("%c", &ch) != EOF) { getchar(); if (ch>='A' && ch<='Z') { ...
C
2022-01-08
0
234
题解 | #判断是不是字母#
#include <stdio.h> int main(void) { char ch = 0; while (scanf("%c", &ch) != EOF) { getchar(); if ((ch>='A' && ch<='Z') ...
C
2022-01-08
0
305
题解 | #最高分数#
int main(void) { int max = 0, arr[3] = {0}; scanf("%d%d%d", &arr[0], &arr[1], &arr[2]); int i = 0; for (i = 0; i < 3; i++) { if (...
C
2022-01-08
0
301
题解 | #成绩输入输出问题#
#include <stdio.h> int main(void) { int arr[10] = { 0 }; int i = 0; for (i = 0; i < 10; i++) { scanf("%d", &arr[i]); } for (i = 0...
C
2021-12-08
0
379
题解 | #奇偶统计#
#include <stdio.h> int main(void) { int n = 0; scanf("%d", &n); if (0 == n % 2) { printf("%d %d", n / 2, n / 2); } else { print...
C
2021-12-07
0
324
首页
上一页
1
2
下一页
末页