一元多项式加法(简单粗暴) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>void createListL();typedef struct Node{ int a;//表示…… 题解列表 2023年06月08日 0 点赞 0 评论 421 浏览 评分:9.9
蓝桥杯算法训练VIP-链表数据求和操作(有老六解法,C语言) 摘要:老六解题法 #include<stdio.h> int main(){ int a[10],b[10]; int sum1 = 0,sum2 = 0; for(int i=0;…… 题解列表 2023年06月08日 0 点赞 0 评论 234 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和 摘要:#include<stdio.h> #include<stdlib.h> typedef struct elemtype { int a; int b; struct elem…… 题解列表 2023年06月08日 0 点赞 0 评论 225 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; long int max = -1000000,a[100],sum=0; …… 题解列表 2023年06月08日 0 点赞 0 评论 773 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double f(int x){ double c; if (x == 1) c = 1.0; else…… 题解列表 2023年06月08日 0 点赞 0 评论 240 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100][100] = { 0 }, i, j, n, m,sum=0; scanf("…… 题解列表 2023年06月08日 0 点赞 0 评论 414 浏览 评分:0.0
并查集,时间复杂度O(n^2),数据量达到5000应该也可行 摘要:解题思路: 先合并两座岛各自的,然后在合并组合的 注意事项: 因为有多种组合,因此不要修改原并查集的数据 参考代码: import java.io.BufferedReader; impo…… 题解列表 2023年06月08日 0 点赞 0 评论 825 浏览 评分:9.9
纯规律,不使用循环 摘要:解题思路:找到规律,不能被平分差的数的是 (x-2)%4 == 0, 然后判断 L,R中有多少个这样的数注意事项:参考代码:#include<bits/stdc++.h>#define ikun co…… 题解列表 2023年06月08日 0 点赞 1 评论 895 浏览 评分:4.0
[编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; scanf("%d",&n); for(int i=2;i<=n;i++) { int…… 题解列表 2023年06月08日 0 点赞 0 评论 282 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101]; int n,i; scanf…… 题解列表 2023年06月08日 0 点赞 0 评论 273 浏览 评分:0.0