编写题解 2788: 晶晶赴约会 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a==1||a==3||a==5) prin…… 题解列表 2024年02月04日 0 点赞 0 评论 277 浏览 评分:9.9
编写题解 2791: 计算邮资 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,c; char b; scanf("%d %c",&a,&b); c=a-1…… 题解列表 2024年02月04日 0 点赞 0 评论 285 浏览 评分:9.9
这道题是背包问题 摘要:解题思路:注意事项:【【Python算法实战】背包问题】 https://www.bilibili.com/video/BV1PA411J7Zh/?share_source=copy_web&vd_s…… 题解列表 2024年02月04日 0 点赞 0 评论 367 浏览 评分:9.9
1011: [编程入门]最大公约数与最小公倍数 摘要:###思路 辗转相除法求`gcd`,然后`lcm=a*b/gcd`。 ###注意事项 a*b可能爆。 ###代码 ```cpp #include using namespace std;…… 题解列表 2024年02月04日 0 点赞 0 评论 166 浏览 评分:9.9
编写题解 2795: 财务管理 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a[12],sum=0; int i; for(i=0;i<12;i++) …… 题解列表 2024年02月04日 0 点赞 0 评论 580 浏览 评分:9.9
[编程入门]三个数最大值 摘要:#include<bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false) int main() …… 题解列表 2024年02月04日 0 点赞 0 评论 235 浏览 评分:9.9
最简洁的解 摘要:参考代码:n = int(input()) # 初始饮料数和瓶盖数 total_drinks = n caps = n # 不断循环,直到无法再换取新的饮料 while caps >…… 题解列表 2024年02月04日 0 点赞 0 评论 238 浏览 评分:9.9
Sine之舞:简单的字符连接及找规律题 摘要:解题思路: 本题中可以使用递归或者循环的方法进行字符串连接输出对应结果,主要的解题步骤还是要找规律,字符拼接的时候只要别粗心少个符号啥的就行,这一题中首先看An,它本质上就是“sin(i”加上对应加减…… 题解列表 2024年02月04日 0 点赞 0 评论 253 浏览 评分:9.9
一种减小复杂度的质因数分解法 摘要:解题思路:本题中主要思路就是遍历题目给出区间,分解其中每一个元素的质因式主要的部分为:1.判断质数的函数 2.生成升序质数序列(一般只需要从小到大判断元素并且加入列表就行了,不需要再专门排序)3.从题…… 题解列表 2024年02月04日 0 点赞 0 评论 192 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月05日 0 点赞 0 评论 176 浏览 评分:9.9