水瓶water_ping
水瓶water_ping
全部文章
分类
题解(12)
归档
标签
去牛客网
登录
/
注册
水瓶water_ping的博客
全部文章
(共14篇)
题解 | #栈的压入、弹出序列#
//https://www.nowcoder.com/practice/d77d11405cc7470d82554cb392585106?tpId=13&&tqId=11174&rp=1&ru=/activity/oj&qru=/ta/coding-inter...
C++
2022-07-29
0
293
题解 | #数组中出现次数超过一半的数字#
//https://www.nowcoder.com/practice/e8a1b01a2df14cb2b228b30ee6a92163?tpId=13&&tqId=11181&rp=1&ru=/activity/oj&qru=/ta/coding-inter...
C++
2022-07-12
0
228
题解 | #有序序列合并#
//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
首页
上一页
1
2
下一页
末页