Zerone·
Zerone·
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Zerone·的博客
全部文章
/ 题解
(共111篇)
题解 | #字符串操作#
">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
题解 | #井字棋#
">int output(int val) { //判断是否有三连棋 if (val / 3 == 'K') { printf("KiKi wins!"); val = 1; //有则返回1,代表已打印结果 } else if (val / 3 =...
C
2022-05-26
2
375
题解 | #杨辉三角#
">int main() { int n; scanf("%d", &n); int val[n][n]; for (int i = 0; i < n; i++) { for (int j = 0; j <= i; j++) { ...
C
2022-05-25
1
310
题解 | #矩阵交换#
">int main() { int n, m; scanf("%d %d", &n, &m); int val[n][m]; for (int i = 0; i < n; i++) { for (int j = 0; j <...
C
2022-05-25
1
0
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页