蓝桥杯算法训练VIP-拦截导弹 摘要:解题思路:注意事项:参考代码:public class Tdd { public static void main(String[] args) { Scanner sc …… 题解列表 2022年10月20日 0 点赞 0 评论 349 浏览 评分:9.9
完全背包问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxs 110#define maxb 10#define max…… 题解列表 2022年10月21日 0 点赞 0 评论 445 浏览 评分:9.9
只要有因数比输入的数小,那就不是素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void isprime(int n){ int i,m=0; if(n==1) //1比较特殊单独考虑 { …… 题解列表 2022年10月21日 0 点赞 0 评论 299 浏览 评分:9.9
数字后移(基础思路) 摘要:解题思路:两个数组,a[]保存原始输入值,b[]的头存a[]的尾,最后将a[]的后半部分给b[];注意事项:参考代码:#include<iostream>using namespace std;int…… 题解列表 2022年10月21日 0 点赞 0 评论 342 浏览 评分:9.9
最简单解法,一看就会,不会的找我。 摘要:解题思路:注意审题,输出格式一定要正确注意事项:注意a是整形,b是浮点数,c是字符参考代码:#include<stdio.h>int main(){ int a; float b; cha…… 题解列表 2022年10月21日 2 点赞 1 评论 451 浏览 评分:9.9
简单小学数论规律题:没想到吧giegie~ 摘要:# 小学奥数结论题(证明略) `若两个整数p、q互质 ,则p,q不能凑出的最小整数为 (p - 1)*(q - 1) - 1;` ```cpp #include using nam…… 题解列表 2022年10月21日 0 点赞 1 评论 716 浏览 评分:9.9
调库就行了 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 10010#define maxm 105int n,m;…… 题解列表 2022年10月21日 0 点赞 0 评论 353 浏览 评分:9.9
简单的动态规划算法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 15//对于100%的数据,n<=13int n,simi…… 题解列表 2022年10月21日 0 点赞 0 评论 602 浏览 评分:9.9
求矩阵最大元素值、下标 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,k,l; int big,tmp; int a[100][100]; scanf("%d",…… 题解列表 2022年10月21日 0 点赞 0 评论 452 浏览 评分:9.9
打地鼠-题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>//int f(int a,int b);main(){int n,n1; while(~scanf("…… 题解列表 2022年10月21日 0 点赞 0 评论 375 浏览 评分:9.9