python--study||O.o 摘要:参考代码:# 重点就是判断条件的顺序 n = int(input()) square = [[0] * (2 * n - 1) for _ in range(2 * n - 1)] x, y…… 题解列表 2024年04月19日 0 点赞 0 评论 339 浏览 评分:6.0
3044: 电池的寿命 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<utility> #include<limits> #inclu…… 题解列表 2024年04月20日 0 点赞 0 评论 345 浏览 评分:6.0
2804: 与指定数字相同的数的个数 摘要:解题思路:注意事项:千万别抄,会遭报应的参考代码:#include <iostream>using namespace std;typedef long long ll;const int N=1e7…… 题解列表 2024年04月21日 1 点赞 0 评论 362 浏览 评分:6.0
[递归]母牛的故事(动态规划,递归) 摘要:解题思路:写出数学表达式 F(x){ x<=3 f(x)=x;// 前三年只有一头母牛生孩子 &nbs 题解列表 2024年04月27日 0 点赞 0 评论 394 浏览 评分:6.0
编写题解 1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> void count(char* str,int* …… 题解列表 2024年05月13日 0 点赞 0 评论 290 浏览 评分:6.0
求长方形面积 摘要:参考代码:#include<stdio.h>int main(){ int a,b; int C=0,S=0; scanf("%d%d",&a,&b); C=2*(a+b); S=a*b; print…… 题解列表 2024年05月24日 0 点赞 1 评论 1012 浏览 评分:6.0
测试数据有问题 摘要:错误样例样例:33 1 0预期:2实际:3注意事项:参考代码:贴上代码:right方法是错误的import java.util.Arrays; import java.util.Random; i…… 题解列表 2024年05月30日 2 点赞 0 评论 557 浏览 评分:6.0
全网最简单思路,简单代码+排序相除即可 摘要:解题思路:首先求等比数列最大比例,题目会给出一个等比数列的子序列。1、先从大到小排序,然后计算每一项与后一项的比例,取最小的比例就是题目要求的了。证明很简单,任意项之间的比值都为q^x,只要找到都能满…… 题解列表 2024年05月31日 0 点赞 0 评论 391 浏览 评分:6.0
编写题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b; cin>>a>>b; cout<<a+b; re…… 题解列表 2024年06月09日 0 点赞 0 评论 708 浏览 评分:6.0
斐波那契数列 摘要:解题思路:用一个变量存储上一个数注意事项:无参考代码: #includde<stdio.h> int main(){ int n; int t; in…… 题解列表 2024年06月19日 0 点赞 0 评论 347 浏览 评分:6.0