Zerone·
Zerone·
全部文章
分类
题解(113)
归档
标签
去牛客网
登录
/
注册
Zerone·的博客
全部文章
(共115篇)
题解 | #数位五五#
">int main() { int a, b, count = 0; scanf("%d %d", &a, &b); for (int i = a; i <= b; i++) { int val = i, sum = 0; ...
C
2022-05-27
4
618
题解 | #小乐乐计算函数#
">int max3(float a, float b, float c) { if (a >= b && a >= c) return a; else if (b >= a && b >= c) return b; e...
C
2022-05-27
3
413
题解 | #简写单词#
```#include<stdio.h> int main() { char s[100] = {0}; while (scanf("%s", &s) != EOF ) { if (s[0] >= 65 && s[0] <...
C
2022-05-27
23
1019
题解 | #字符串操作#
">int main() { int n, m, l, r; char s[1000] = {0}, c1, c2; scanf("%d %d\n%s", &n, &m, &s); for (int i = 0; i < m; i++) ...
C
2022-05-27
9
484
题解 | #竞选社长#
">int main() { char n; int a = 0, b = 0; while (scanf("%c", &n) != EOF) { if (n == '0') break; if (n == 'A') a++; ...
C
2022-05-27
2
366
题解 | #添加逗号#
">#include<string.h> int main() { char s[20] = {0}; scanf("%s", &s); int val = strlen(s); //获取字符长度 for (int i = 1; i <= ...
C
2022-05-27
26
1026
题解 | #[NOIP2008]笨小猴#
">#include<string.h> int output(int a) { //判断是否为质素 int count = 0; for (int i = 1; i <= a; i++) { if (a % i == 0) count++; ...
C
2022-05-27
9
699
题解 | #登录验证#
">#include<string.h> int main() { char user[10] = {"admin"}, password[10] = {"admin"}; char n[10] = {0}, m[10] = {0}; while (scanf("...
C
2022-05-27
1
348
题解 | #[NOIP2018]标题统计#
">#include<string.h> int main() { int n, m = 0; char s[100] = {0}; gets(s); n = strlen(s); for (int i = 0; i < n; i++) { ...
C
2022-05-26
4
0
题解 | #扫雷#
">int output(int x, int y, int z, int k, char ch[][k]) { int count = 0; //在当前值周围进行循环判断 for (int i = x - 1; i <= x + 1; i++) { f...
C
2022-05-26
1
397
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页