简单算数表达式Java(正则表达式) 摘要:import java.util.Scanner;public class Main { public static void main(String[] args) { Scan…… 题解列表 2023年06月08日 0 点赞 0 评论 553 浏览 评分:9.9
一元多项式加法(简单粗暴) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>void createListL();typedef struct Node{ int a;//表示…… 题解列表 2023年06月08日 0 点赞 0 评论 450 浏览 评分: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 评论 272 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和 摘要:#include<stdio.h> #include<stdlib.h> typedef struct elemtype { int a; int b; struct elem…… 题解列表 2023年06月08日 0 点赞 0 评论 258 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; long int max = -1000000,a[100],sum=0; …… 题解列表 2023年06月08日 0 点赞 0 评论 813 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double f(int x){ double c; if (x == 1) c = 1.0; else…… 题解列表 2023年06月08日 0 点赞 0 评论 260 浏览 评分: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 评论 440 浏览 评分:0.0
并查集,时间复杂度O(n^2),数据量达到5000应该也可行 摘要:解题思路: 先合并两座岛各自的,然后在合并组合的 注意事项: 因为有多种组合,因此不要修改原并查集的数据 参考代码: import java.io.BufferedReader; impo…… 题解列表 2023年06月08日 0 点赞 0 评论 905 浏览 评分:9.9
纯规律,不使用循环 摘要:解题思路:找到规律,不能被平分差的数的是 (x-2)%4 == 0, 然后判断 L,R中有多少个这样的数注意事项:参考代码:#include<bits/stdc++.h>#define ikun co…… 题解列表 2023年06月08日 0 点赞 1 评论 931 浏览 评分: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 评论 319 浏览 评分:9.9