NeverGiveUp2019
NeverGiveUp2019
全部文章
分类
题解(35)
归档
标签
去牛客网
登录
/
注册
NeverGiveUp2019的博客
全部文章
(共35篇)
题解 | #记负均正II#
#include <iostream> #include <iomanip> //输出位控制相关 using namespace std; int main() { float positive_num = 0.0; int posi...
C++
2022-04-21
0
193
题解 | #学英语#
#include <iostream> #include <vector> using namespace std; /* 获取对应数字的 英文 */ string get_value(int data) { string value; swit...
C++
2022-04-21
0
241
题解 | #求解立方根#
#include <stdio.h> /* 二分法查找立方根 */ double dichotomy_cube_root(double num) { double min, max, mid; min = -20; max = 20; i...
C
2022-04-18
0
313
题解 | #Redraiment的走法#
#include <stdio.h> int main() { int num; int step[200]; int max_step = 1; int dp[300] = {0}; memset(step, 0, sizeof(in...
C
2022-04-18
2
270
题解 | #人民币转换#
#include <stdio.h> /* 获取阿拉伯数字对应的中文数字 */ int get_value(int data, char* value) { switch(data) { case 0: memcpy(value...
C
2022-04-15
0
308
题解 | #在字符串中找出连续最长的数字串#
#include <stdio.h> typedef struct { int start_index[10]; //标记数字子串的开始下标 int len; //数字子串的长度 }Sub_str_t; /* 记录数...
C
2022-04-15
1
328
题解 | #合法IP#
#include <stdio.h> /* 注意各类不合法的 IP 超过 0-255 01.2.3.4 注意:0.2.3.4 是合法IP */ int main() { char ip[20] = {0}; while(scanf("%s"...
C
2022-04-15
1
327
题解 | #字符串通配符#
#include <stdio.h> #include <string.h> int main() { char str[1001] = {0}; int quotation = 0; int num = 0; int len = 0; ...
C
2022-04-14
0
249
题解 | #字符串通配符#
#include <stdio.h> /* 判断是否能够通配,除字母和数组,其他字符无法通配 */ int is_match(char ch) { if((ch >= '0' && ch <= '9') || (ch >= 'a'...
C
2022-04-13
0
294
题解 | #矩阵乘法计算量估算#
#include <stdio.h> #include <ctype.h> typedef struct { int row; //行数 int col; //列数 }Matric_t; int main() { Ma...
C
2022-04-12
0
292
首页
上一页
1
2
3
4
下一页
末页