1119: C语言训练-"水仙花数"问题1 摘要:解题思路:1,倒序。 g = n % 10;%10的结果是他的个位,个位我们用g表示。 n = n / 10;/10是剩下的数。 fn = fn + g * g * g;这是倒序后…… 题解列表 2024年07月19日 0 点赞 0 评论 190 浏览 评分:0.0
编写题解 1671: 小九九 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main(){ for(int i=1; i<=9; i++) …… 题解列表 2024年07月19日 0 点赞 0 评论 686 浏览 评分:9.9
2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;string a;const int N…… 题解列表 2024年07月20日 0 点赞 0 评论 316 浏览 评分:9.9
1720: 数据结构-基数排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e5;ll a…… 题解列表 2024年07月20日 0 点赞 0 评论 240 浏览 评分:0.0
2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年07月20日 0 点赞 0 评论 380 浏览 评分:0.0
编写题解 1131: C语言训练-斐波纳契数列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll ;const ll N=1e6;ll a…… 题解列表 2024年07月20日 0 点赞 0 评论 273 浏览 评分:9.9
计算分数的浮点数值 摘要:解题思路:注意事项:保留九位小数,注意被除数不能为零参考代码:a,b = map(int,input(().split()) if b != 0: result = round(a/b,9) …… 题解列表 2024年07月21日 0 点赞 0 评论 684 浏览 评分:0.0
2332: 信息学奥赛一本通T1181-整数奇偶排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e5;ll a…… 题解列表 2024年07月21日 0 点赞 0 评论 239 浏览 评分:9.9
编写题解 2332: 信息学奥赛一本通T1181-整数奇偶排序 摘要:解题思路:先用sort排序,再输出注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const in…… 题解列表 2024年07月21日 0 点赞 0 评论 202 浏览 评分:9.9