c++算法(保留小数位要注意) 摘要:解题思路:# include<iostream> # include<iomanip> using namespace std; int main(){ double a,b,…… 题解列表 2023年10月23日 1 点赞 0 评论 253 浏览 评分:0.0
石头剪刀布 摘要:解题思路:注意事项:参考代码:ls=["Rock", "Scissors", "Paper"]a=b=0x=0f=[]N = int(input())for i in range(N): a,b = …… 题解列表 2023年10月23日 0 点赞 0 评论 533 浏览 评分:9.9
懂得都懂,不懂的我也没办法 摘要:from collections import defaultdict def num_dc(A): res = 0 n = N dp = [defaultdict(i…… 题解列表 2023年10月23日 0 点赞 0 评论 372 浏览 评分:9.9
编写题解 1670: 拆分位数(c++) 摘要:解题思路:利用数组来进行倒序输出注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[3]; int n; cin >> …… 题解列表 2023年10月23日 0 点赞 0 评论 396 浏览 评分:9.9
题解(c++):1018: [编程入门]有规律的数列求和 摘要:解题思路:首先观察数列,然后找后一个分子分母与前一个分子分母之间的规律注意事项:保留两位小数参考代码:#include<iostream>#include<iomanip>using namespac…… 题解列表 2023年10月23日 0 点赞 0 评论 343 浏览 评分:9.9
2017: 猜价模拟 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long int n; cin>>n;…… 题解列表 2023年10月23日 0 点赞 0 评论 340 浏览 评分:0.0
等差数列简单求解 摘要:参考代码:#include<stdio.h>int main(){ int n, i; scanf("%d", &n); int arr[n];//定义一个数组名 arr[0]…… 题解列表 2023年10月23日 0 点赞 0 评论 301 浏览 评分:0.0
简单的数学题 摘要:解题思路:题目可以理解为n天,每天给n块,换算成公式就是x=x+n*n,所以我们可以按公式算出来,然后增加一个判断,是否为1+2+3+4……+n的值,不是就减去。注意事项:参考代码:#include<…… 题解列表 2023年10月23日 0 点赞 0 评论 464 浏览 评分:9.9
2012: 百分制成绩转换 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int arr[5]={0},arr1[100]…… 题解列表 2023年10月22日 0 点赞 0 评论 217 浏览 评分:0.0
2009: 第一个带类的C++程序 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; class Data { public: void Set(string…… 题解列表 2023年10月22日 0 点赞 0 评论 312 浏览 评分:0.0