3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>typedef long long ll;const int N=1e7;ll a[N];using namespace s…… 题解列表 2024年04月20日 0 点赞 0 评论 328 浏览 评分:0.0
题解 1579: 蓝桥杯算法提高VIP-陶陶摘苹果2 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e7;ll…… 题解列表 2024年04月20日 0 点赞 0 评论 220 浏览 评分:0.0
输入绝对值 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ float f; scanf("%f",&f); printf("%.2f",f > 0 ? (f) : (-…… 题解列表 2024年04月20日 0 点赞 0 评论 242 浏览 评分:0.0
1579: 蓝桥杯算法提高VIP-陶陶摘苹果2 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>typedef long long ll;const int N=1e7;ll a[N];using namespace s…… 题解列表 2024年04月20日 0 点赞 0 评论 216 浏览 评分:0.0
数学问题,掌握最大公因数的性质即可 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; /** * * 最大公约数的一个关键性质是: * * 两个数的最大公约数与它们的差值的最大公约…… 题解列表 2024年04月20日 1 点赞 0 评论 401 浏览 评分:0.0
题解 2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,c; scanf("%d%d%d",&n,&i,&j); for(int …… 题解列表 2024年04月20日 0 点赞 0 评论 276 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项: csum+=(double) 1 /i 这部分是关键 一定要加double 否则它会向下取整参考代码:import java.util.*;pu…… 题解列表 2024年04月20日 0 点赞 0 评论 272 浏览 评分:0.0
ceil方法解决邮资问题 摘要:解题思路:对于不足某一部分按某一部分价格计费,外我们只需用一个向上取整的数学方法即可注意事项:此时向上取整的结果仍然是浮点数参考代码:import java.util.Scanner;public c…… 题解列表 2024年04月20日 0 点赞 0 评论 264 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:注意存储用long !!! 写函数时也用!!!参考代码:import java.util.*;public class Main { publi…… 题解列表 2024年04月20日 0 点赞 0 评论 235 浏览 评分:0.0
python--study||O.o 摘要:参考代码:import sys def make(x): res = bin(x) res = res[2:] while len(res) < 5: …… 题解列表 2024年04月20日 0 点赞 0 评论 242 浏览 评分:0.0