NeverGiveUp2019
NeverGiveUp2019
全部文章
分类
题解(35)
归档
标签
去牛客网
登录
/
注册
NeverGiveUp2019的博客
全部文章
(共35篇)
题解 | #找出字符串中第一个只出现一次的字符#
#include <stdio.h> int main() { char input[1001] = {0}; int *ishave = malloc(sizeof(int) * 300); while(scanf("%s", input) != E...
C
2022-03-31
0
229
题解 | #高精度整数加法#
#include <stdio.h> int main() { char num_str[2][10001] = {0}; /* 输入 */ for(int i = 0; i < 2; i++) { if(NULL == ...
C
2022-03-30
0
274
题解 | #整数与IP地址间的转换#
#include <math.h> #include <string.h> /* 整数转换为 二进制数 */ int get_bit(int num, int *bit, int index) { int ret = 0; for(int i = index...
C
2022-03-23
0
268
题解 | #单词倒排#
#include <stdio.h> #include <string.h> int main() { char input[2501] = {0}; while(scanf("%s", &input) != EOF) { ...
C
2022-03-23
0
246
题解 | #单词倒排#
#include <stdio.h> int main() { char input[10001] = {0}; while(gets(input) != NULL) { //标志位用于,过滤多个连续的非字母数据 in...
C
2022-03-22
0
283
题解 | #字符串合并处理#
#include <string.h> #include <math.h> /* 按要求,asccii码大小排序 */ int sort_merge(char* str) { int ret = 0; int len = strlen(str); ...
C
2022-03-22
0
197
题解 | #查找兄弟单词#
#include <stdio.h> #include <string.h> int main() { char inputWord[1000][10] = {0}; char inputOriginWord[10] = {0}; int n; ...
C
2022-03-21
0
333
题解 | #字符串排序#
int main() { char input[1001] = {0}; char character[1001] = {0}; int index = 0; while(gets(input) != NULL) { /* 按字母顺序...
C
2022-03-20
42
1791
题解 | #数据分类处理#
1.排序R 2.匹配I的数据,并过滤相同的R值 int main() { int I[200]; int R[200]; int ISize = 0; int RSize = 0; int index = 1; int result[500]; ...
C
2022-03-20
0
236
题解 | #删除字符串中出现次数最少的字符#
int main() { char input[21] = {0}; int lowCase[26] = {0}; int min = -1; while(scanf("%s", input) != EOF) { /* 存储字母出现的...
C
2022-03-19
0
240
首页
上一页
1
2
3
4
下一页
末页