3013: 求小数的某一位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,b,n,c; cin>…… 题解列表 2024年01月16日 0 点赞 0 评论 168 浏览 评分:0.0
题解 3013: 求小数的某一位 摘要:解题思路:用for循环来模拟除法的过程注意事项:注意:本题不需要浮点型,用sum累加器存储商,最后输出 。 …… 题解列表 2024年01月16日 0 点赞 0 评论 137 浏览 评分: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 评论 173 浏览 评分:0.0
简单最大数 摘要:解题思路:注意事项:参考代码://#define _CRT_SECURE_NO_WARNINGS//#pragma warning(disable:6031)#include<iostream>usi…… 题解列表 2024年01月15日 0 点赞 0 评论 521 浏览 评分:0.0
题解 2794: 求平均年龄 摘要:解题思路:注意事项:可以用两种输出格式参考代码:方法一:#include <bits/stdc++.h>using namespace std;int main(){ int sum,m; …… 题解列表 2024年01月15日 0 点赞 0 评论 223 浏览 评分:0.0
题解 3008: 买笔 摘要:解题思路:要买最多的笔,肯定优先买4元最便宜的,当钱不够买4元笔的时候就撤回之前买的一些笔。转而买5元和6元的笔让钱凑到零注意事项:可以定义多个变量参考代码:方法一:(if语句)#include <i…… 题解列表 2024年01月15日 0 点赞 0 评论 290 浏览 评分:0.0
关于选数异或问题的几种解答及相关讨论。 摘要:解题思路:关于此题,没来没当回事,所以使用了比较暴力的做法。然后经历了空间超限、时间超限等问题,下面是三种解法。注意事项:参考代码:/*第一份代码,此份代码思维简单粗暴,但空间超限仅为只过了两份数据,…… 题解列表 2024年01月15日 0 点赞 0 评论 1428 浏览 评分:9.7
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a; cin>>a; …… 题解列表 2024年01月15日 0 点赞 0 评论 144 浏览 评分:9.9
2819: 数字反转 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n, s = 0; cin >> n; while (n) …… 题解列表 2024年01月15日 0 点赞 3 评论 130 浏览 评分:9.9
3013: 求小数的某一位 摘要:解题思路:注意事项:这里的cout要在外面写a的值可以改变参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long lo…… 题解列表 2024年01月15日 0 点赞 0 评论 218 浏览 评分:9.9