编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a%2==0) { p…… 题解列表 2023年03月24日 0 点赞 0 评论 443 浏览 评分:0.0
编写题解 2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(a>b){ …… 题解列表 2023年03月24日 0 点赞 0 评论 401 浏览 评分:0.0
最小公约数--核桃的数量 摘要:a,b,c=map(int,input().split()) s=[] sum=a*b*c for i in range(1,sum+1): if i%a==0 and i%b==0 …… 题解列表 2023年03月24日 0 点赞 0 评论 518 浏览 评分:0.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组(真·递归解法) 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2023年03月24日 0 点赞 0 评论 387 浏览 评分:0.0
判断一个数是否是质数(C++) 摘要:解题思路:注意事项:0和1不是质数参考代码:#include<iostream>using namespace std;bool check(int n)//检查这个数是否是质数,{ if (…… 题解列表 2023年03月25日 0 点赞 0 评论 447 浏览 评分:0.0
找最大公约数也是最小的公差 摘要:解题思路:因为是从等差数列取的几个数,所以这几个数一定是公差的几倍或者就是公差,为了满足n个数都能匹配,所以我们要选择最小公差注意事项:参考代码:n=int(input())a=list(map(in…… 题解列表 2023年03月25日 0 点赞 0 评论 441 浏览 评分:0.0
数组切分 动态规划 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e5+10;in…… 题解列表 2023年03月25日 0 点赞 0 评论 541 浏览 评分:0.0
dfs+贪心解法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n,k;int dfs(int t){ if(t<=n) { …… 题解列表 2023年03月25日 0 点赞 0 评论 482 浏览 评分:0.0
求矩阵的两对角线上的元素之和python 摘要:解题思路:注意事项:参考代码:n = int(input())L = []s = 0for i in range(n): L.append(list(map(int,input().split(…… 题解列表 2023年03月25日 0 点赞 0 评论 416 浏览 评分:0.0
编写题解 2998: 电影票 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d", &a, &b))printf("%d\n…… 题解列表 2023年03月25日 0 点赞 0 评论 448 浏览 评分:0.0