C语言训练-舍罕王的失算(高精度) 摘要:解题思路:高精度注意事项:参考代码:#include#include#includeusing namespace std; const int N = 1e3 + 10; int a[N], b…… 题解列表 2024年08月12日 0 点赞 0 评论 337 浏览 评分:9.9
津津的储蓄计划(python版) 摘要:解题思路:注意事项:参考代码:def progress(x,y): if x<y: return -1 else: less=x-y return…… 题解列表 2024年08月12日 0 点赞 0 评论 381 浏览 评分:10.0
C语言训练-计算1977!(高精度) 摘要:解题思路:高精度注意事项:数组元素long long参考代码:#include<iostream> #include<cmath> #include<string> using namespac…… 题解列表 2024年08月12日 2 点赞 0 评论 407 浏览 评分:6.0
明明的随机数C++,使用vector函数 摘要:解题思路:利用vector容器设置数组先去重在排序,使用选择排序参考代码:#include<iostream>#include<vector>using namespace std;//选择排序voi…… 题解列表 2024年08月12日 0 点赞 0 评论 253 浏览 评分:0.0
我看没有人用结构体数组解,那我就写了一个(C语言) 摘要:1)**常规解法** 我真的服了,第一次我是用这个方法,结果只过了50%,说是时间超限,找了半天实在不知道哪有问题,我就想着那就用结构体数组,用空间换时间。结构体数组过了,然后我看题解,发现大家都用…… 题解列表 2024年08月12日 1 点赞 0 评论 357 浏览 评分:9.9
python语言训练-求PI* 摘要:解题思路: 注意绝对值小于10^-6是某一项的,但是就是正负符号参考代码:pi = 1.0 i = 3.0 c = 1 while True: if 1 / i < 0.0000…… 题解列表 2024年08月13日 0 点赞 0 评论 596 浏览 评分:0.0
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char str[100] = { 0 }; …… 题解列表 2024年08月13日 0 点赞 0 评论 189 浏览 评分:9.9
编写题解 1103: 开心的金明 摘要:解题思路:背包问题、vector、动态规划dp注意事项:参考代码:#include<iostream>#include<vector>#include<algorithm>using namespac…… 题解列表 2024年08月13日 0 点赞 0 评论 316 浏览 评分:0.0
C++语言训练-谁家孩子跑最慢(Vector,集合) 摘要:解题思路:建立两个vector<set<int>> 分别代表李、王家选手得分, 按照题目要求初始化李、王家可能的得分集合。 计算每一种可能的交集, 如果为空集, 则判断1分是否在李 、 王家, 否则就…… 题解列表 2024年08月13日 2 点赞 0 评论 339 浏览 评分:9.9
十分简单,一看就会 摘要:参考代码:#include<stdio.h>int main(){ int n,k=0; int num,a[100]; scanf("%d",&n); for(int i=1;i<n;i++){ …… 题解列表 2024年08月14日 0 点赞 0 评论 237 浏览 评分:0.0