信息学奥赛一本通T1256-献给阿尔吉侬的花束(BFS) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;class Node {public: int x, y, step; …… 题解列表 2022年08月01日 0 点赞 0 评论 823 浏览 评分:6.7
数组逆序重放 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class P2836 { public static void main(String[] args) …… 题解列表 2022年10月12日 0 点赞 0 评论 998 浏览 评分:6.7
编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:n=int(input()) if n%2!=0: print('odd') else: print('even'…… 题解列表 2022年10月18日 1 点赞 0 评论 1629 浏览 评分:6.7
计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; int sum=0; scanf("%d %d",&n,&m); in…… 题解列表 2022年11月17日 0 点赞 0 评论 611 浏览 评分:6.7
选择法)最大数位置 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[1001]; int i; int j; int n; int max…… 题解列表 2022年11月21日 0 点赞 0 评论 529 浏览 评分:6.7
幂的末尾C语言实现 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int a,b,i; scanf("%d %d",&a,&b); int c=1; for(i=1;i<=b;…… 题解列表 2022年12月16日 0 点赞 0 评论 642 浏览 评分:6.7
2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:l = [] n = int(input()) a,b = map(int,input().split()) x = b / a for i in range(0…… 题解列表 2023年02月08日 0 点赞 0 评论 549 浏览 评分:6.7
01背包的变种 摘要:解题思路:当我看到这题的第一眼立马就想到了dfs在没有使用记忆化搜索是只拿了45分,于是开始了dp,在看了一些大佬的讲解后,明白了这个01背包的变种问题,我们把题目看成这样,有一个容量为max(砝码总…… 题解列表 2023年03月12日 0 点赞 0 评论 657 浏览 评分:6.7
求阶乘-二分查找-求阶乘中某质因子个数(java) 摘要:解题思路: 只需要知道2和5可以组成一个零,并且2的数量总会比5多,所有只需要求解阶乘中质因数5的个数就可以求出阶乘中后导零的个数 所以问题变成了:求阶乘中某质因子个数: 只…… 题解列表 2023年03月16日 0 点赞 0 评论 790 浏览 评分:6.7
C语言 扫雷竞赛练习题解 摘要:解题思路:要清楚扫雷游戏的逻辑,巧用二维数组注意事项:注意m,n范围参考代码:#include<stdio.h>int main(void) { int m,n; …… 题解列表 2023年03月30日 1 点赞 0 评论 850 浏览 评分:6.7