laingdc
laingdc
全部文章
分类
归档
标签
去牛客网
登录
/
注册
laingdc的博客
全部文章
(共46篇)
题解 | #矩阵乘法计算量估算#
#include <stdio.h> #include <stdlib.h> #include <string.h> int sum = 0, len; char* p; int* rr_cc(int r_c[][2], int stack) { int...
2023-04-08
0
239
题解 | #矩阵乘法#
#include <stdio.h> #include <string.h> int main() { int row1, col1, col2; scanf("%d\n%d\n%d", &row1, &col1, &col2); int mat1[...
2023-04-08
0
226
题解 | #配置文件恢复#
#include <stdio.h> #include <string.h> char* cmdh[5] = {"reset","board","board","reboot","backplane"}; char* cmdl[5] = {"board","add","de...
2023-04-08
0
270
题解 | #24点游戏算法#
#include <stdio.h> #include <stdlib.h> #include <string.h> double num[4]; int vis[4]; int dfs(int step,double sum) { if(step == ...
2023-04-08
0
251
题解 | #MP3光标位置#
#include <stdio.h> int main() { int muinum = 0; char c; int now = 1; int pagetop = 1; int pagebot = 4; scanf("%d",&muin...
2023-04-08
0
227
题解 | #DNA序列#
#include <stdio.h> #include <string.h> int main() { char str[1000]; while(~scanf("%s",str)) { int n; scanf("%...
2023-04-07
0
180
题解 | #找出字符串中第一个只出现一次的字符#
#include <stdio.h> #include <string.h> typedef struct { int count; int index; }hash; int main() { hash hash[26]...
2023-04-07
0
252
题解 | #高精度整数加法#
#include <stdio.h> #include <string.h> #include <stdlib.h> void addint(char str1[], char str2[]) { int n1 = strlen(str1); in...
2023-04-07
0
302
题解 | #挑7#
#include <stdio.h> int main() { int n; int count = 0; scanf("%d", &n); if (n < 7) { count = 0; } else { ...
2023-04-06
0
193
题解 | #四则运算#
#include<string.h> #include<ctype.h> #include <stdio.h> int pos=0; int result(char str[]){ int len=strlen(str); int stack[10...
2023-04-06
0
240
首页
上一页
1
2
3
4
5
下一页
末页