牛客830289240号
牛客830289240号
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
牛客830289240号的博客
全部文章
(共30篇)
题解 | #字符串排序#
#include <stdio.h> #include <string.h> char str2pos(char s) { if(s >= 'a' && s <= 'z') { return s - 'a'; } ...
2023-03-31
0
241
题解 | #数字颠倒#
#include <stdio.h> #include <stdlib.h> int main() { char *s; s = malloc(100); int i = 0; while ((s[i++] = getchar()) != E...
2023-03-29
0
183
题解 | #字符个数统计#
#include <stdio.h> int main() { char s[500], asc[128] = {0}, sum = 0; while (scanf("%s", &s) != EOF) { // 注意 while 处理多个 case //...
2023-03-28
0
237
题解 | #提取不重复的整数#
#include <stdio.h> #include <string.h> int main() { char s[10]; char n = 0; scanf("%s", s); n = strlen(s); for(int i ...
2023-03-17
0
202
题解 | #提取不重复的整数#
#include <stdio.h> #include <string.h> int main() { char s[10]; unsigned long n = 0; while (scanf("%s", s) != EOF) { // 注意 wh...
2023-03-17
0
211
题解 | #合并表记录#
#include <stdio.h> typedef struct Table { int idx; int val; } table; int main() { int n, a, b, i = 0, j = 0, tmp; scanf("%d", &...
2023-03-16
0
252
题解 | #取近似值#
#include <stdio.h> int main() { float a; scanf("%f", &a); int b = a * 100; if (b % 100 >= 50) b = ((b + 50) / 100); ...
2023-03-15
0
202
题解 | #进制转换#
#include <stdio.h> #include <string.h> char hex2dec(char a) { int tmp; if(a >= '0' && a <= '9') { tmp = a - '0'...
2023-03-12
0
266
题解 | #字符串分隔#
#include <stdio.h> #include <string.h> int main() { char str[100]; while (scanf("%s", str) != EOF) { int n = strlen(...
2023-03-10
0
191
题解 | #明明的随机数#
#include <stdio.h> int main() { short n = 0, i = 0, j = 0; short a, b[1000] = {0}, c[1000] = {0}; scanf("%d", &n); for(i = 1; i...
2023-03-10
0
216
首页
上一页
1
2
3
下一页
末页