回文数二:主要为进制转换问题 摘要:解题思路:本体大体没什么难度,不要上去直接按照题目给的进制直接进行对应进制的加法,那样就太复杂了,直接把题目所给的对应进制数用python自带的int()方法转为十进制,再写个通用的十进制转其他进制的…… 题解列表 2024年01月26日 0 点赞 0 评论 401 浏览 评分:9.9
简单实现素数和 摘要:解题思路:注意事项:注意1不是素数!参考代码:#include<iostream>using namespace std;int isprime(int x){ int a=0; …… 题解列表 2024年01月26日 0 点赞 0 评论 268 浏览 评分:9.9
1136题的题解 摘要:[题目传送门](https://www.dotcpp.com/oj/problem1136.html "题目传送门") ### **思路** 题目中说四位数前两位的数和后两位的数加起来的平方等于这…… 题解列表 2024年01月26日 0 点赞 0 评论 267 浏览 评分:9.9
字符串中间和后边*号删除(C++简单易懂) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>using namespace std;string fun(string s){ string …… 题解列表 2024年01月27日 1 点赞 0 评论 406 浏览 评分:9.9
冶炼金属 20行代码 摘要:解题思路:注意max和min+1就OK注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,x,y,n; cin>>n; int…… 题解列表 2024年01月27日 0 点赞 0 评论 812 浏览 评分:9.9
Sn的公式求和(c++解决办法) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int sn=0; …… 题解列表 2024年01月27日 0 点赞 0 评论 306 浏览 评分:9.9
阶乘求和(C++解决办法) 摘要:解题思路:注意事项:第一种:数值溢出的情况,第二:循环递归的思路参考代码:#include<iostream>using namespace std;int main(){ int n; …… 题解列表 2024年01月27日 1 点赞 0 评论 390 浏览 评分:9.9
1151: C语言训练-计算一个整数N的阶乘 摘要:###[题目传送门](https://www.dotcpp.com/oj/problem1151.html) ------------ ###思路 用一个循环把sum从一乘到n,最后输出…… 题解列表 2024年01月27日 0 点赞 0 评论 399 浏览 评分:9.9
复数加减法Java写法 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main { public static void main(String[] args) …… 题解列表 2024年01月28日 0 点赞 0 评论 513 浏览 评分:9.9
简单明了,一看就懂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main(){ int N,M; long x; wh…… 题解列表 2024年01月28日 0 点赞 0 评论 387 浏览 评分:9.9