4thirteen2one
4thirteen2one
全部文章
分类
题解(37)
归档
标签
去牛客网
登录
/
注册
4thirteen2one的博客
TA的专栏
1篇文章
0人订阅
我的刷题记录
1篇文章
353人学习
全部文章
(共38篇)
题解 | #BC73 计算一元二次方程#
#include <stdio.h> #include <math.h> int main() { float a, b, c, d; while (scanf("%f %f %f", &a, &b, &c) !=...
C
2022-07-16
0
397
题解 | #BC55 判断闰年#
#include <stdio.h> int main() { int n; while(scanf("%d", &n) != EOF) { if ((n%400 == 0) || ((n%4==0) && (...
C
2022-07-13
0
349
题解 | #BC44 小乐乐与欧几里得#
#include <stdio.h> int gcd(int a, int b) { // Greatest Common Divisor return (b==0)? a: gcd(b, a%b); } long lcm(int a, int b) { //...
C
2022-07-12
0
252
题解 | #BC45 小乐乐改数字#
#include <stdio.h> #include <math.h> int main() { int n, i = 0, s = 0; scanf("%d", &n); while (n > 0) { ...
C
2022-07-12
1
333
题解 | #BC12 学生基本信息输入输出#
使用 float #include <stdio.h> int main() { int id; float c, math, english; scanf("%d;%f,%f,%f", &id, &c, &math,...
C
2022-07-10
0
385
题解 | #HJ80 整型数组合并#
#include <stdio.h> #include <stdlib.h> #include <string.h> int cmpfunc(const void* a, const void* b) { return (*(int*)a - *(int*...
C
2022-06-19
0
336
题解 | #HJ84 统计大写字母个数#
C语言版本 #include <stdio.h> int main() { char s[251]; scanf("%[^\n]", s); int count = 0; for (int i = 0; i < strlen(s); i++) { ...
C
Python3
2022-06-19
0
543
题解 | #HJ81 字符串字符匹配#
C语言版本 #include <stdio.h> #include <stdbool.h> int main() { char S[201]; char T[201]; scanf("%s", S); scanf("%s", T); ...
C
Python3
2022-06-19
0
484
题解 | #HJ105 记负均正II#
#include <stdio.h> int main() { int num; int negativeCount = 0, nonNegativeSum = 0, nonNegativeCount = 0; double nonNegativeMean =...
C
2022-06-19
0
362
题解 | #HJ86 求最大连续bit数#
C语言版本 #include <stdio.h> int main() { int n, rangeMax, rangeCur; while(scanf("%d", &n) != EOF) { rangeMax = 0, rangeCur = 0...
C
Python3
2022-06-19
0
455
首页
上一页
1
2
3
4
下一页
末页