编写题解 2791: 计算邮资 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,c; char b; scanf("%d %c",&a,&b); c=a-1…… 题解列表 2024年02月04日 0 点赞 0 评论 387 浏览 评分:9.9
这道题是背包问题 摘要:解题思路:注意事项:【【Python算法实战】背包问题】 https://www.bilibili.com/video/BV1PA411J7Zh/?share_source=copy_web&vd_s…… 题解列表 2024年02月04日 0 点赞 0 评论 482 浏览 评分:9.9
1011: [编程入门]最大公约数与最小公倍数 摘要:###思路 辗转相除法求`gcd`,然后`lcm=a*b/gcd`。 ###注意事项 a*b可能爆。 ###代码 ```cpp #include using namespace std;…… 题解列表 2024年02月04日 0 点赞 0 评论 284 浏览 评分: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 评论 733 浏览 评分:9.9
[编程入门]三个数最大值 摘要:#include<bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false) int main() …… 题解列表 2024年02月04日 0 点赞 0 评论 370 浏览 评分:9.9
Sine之舞:简单的字符连接及找规律题 摘要:解题思路: 本题中可以使用递归或者循环的方法进行字符串连接输出对应结果,主要的解题步骤还是要找规律,字符拼接的时候只要别粗心少个符号啥的就行,这一题中首先看An,它本质上就是“sin(i”加上对应加减…… 题解列表 2024年02月04日 0 点赞 0 评论 395 浏览 评分:9.9
一种减小复杂度的质因数分解法 摘要:解题思路:本题中主要思路就是遍历题目给出区间,分解其中每一个元素的质因式主要的部分为:1.判断质数的函数 2.生成升序质数序列(一般只需要从小到大判断元素并且加入列表就行了,不需要再专门排序)3.从题…… 题解列表 2024年02月04日 0 点赞 0 评论 332 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月05日 0 点赞 0 评论 257 浏览 评分:9.9
[编程入门]密码破译 摘要:#include<bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false) int main() …… 题解列表 2024年02月05日 1 点赞 0 评论 753 浏览 评分:9.9
gets和scanf的区别 摘要:- 注意事项1: scanf()输入字符串时,scanf()遇到空格、回车、Tab结束,但在缓冲区中还留着这些结束符,此后如果使用gets()想去获取下一行字符串,它碰到的却是前面遗留下来的回车(或…… 题解列表 2024年02月05日 0 点赞 0 评论 368 浏览 评分:9.9