2819: 数字反转 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,ans = 0; ci…… 题解列表 2024年01月16日 0 点赞 0 评论 358 浏览 评分:9.9
题解 2819: 数字反转 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ /*way1 long long a; …… 题解列表 2024年01月16日 0 点赞 0 评论 388 浏览 评分:0.0
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a; cin>>a; …… 题解列表 2024年01月16日 0 点赞 0 评论 390 浏览 评分:0.0
题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a; cin>>a; …… 题解列表 2024年01月16日 0 点赞 0 评论 400 浏览 评分:0.0
利用数学公式求和 解题思路:由题易知,此题为求解前n项和,但其前n项和不是等比或等差数列,通过观察得知,其中每一项(2,22,222...)均为等比数列前n项和。即:222=2*10^0+2*10^1+2*10^2=2+20+200,故Sn=a1*(1-q^n)/(1-q),其中a1为首项(2), 题解列表 2024年01月16日 0 点赞 0 评论 674 浏览 评分:9.9
3013: 求小数的某一位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,b,n,c; cin>…… 题解列表 2024年01月16日 0 点赞 0 评论 416 浏览 评分:0.0
题解 3013: 求小数的某一位 摘要:解题思路:用for循环来模拟除法的过程注意事项:注意:本题不需要浮点型,用sum累加器存储商,最后输出 。 …… 题解列表 2024年01月16日 0 点赞 0 评论 391 浏览 评分:0.0
题解 3013: 求小数的某一位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,n,c; cin>>a>>b>…… 题解列表 2024年01月16日 0 点赞 0 评论 457 浏览 评分:0.0
简单最大数 摘要:解题思路:注意事项:参考代码://#define _CRT_SECURE_NO_WARNINGS//#pragma warning(disable:6031)#include<iostream>usi…… 题解列表 2024年01月15日 0 点赞 0 评论 875 浏览 评分:0.0
题解 2794: 求平均年龄 摘要:解题思路:注意事项:可以用两种输出格式参考代码:方法一:#include <bits/stdc++.h>using namespace std;int main(){ int sum,m; …… 题解列表 2024年01月15日 0 点赞 0 评论 503 浏览 评分:0.0