记录个人思路,回头消化下辗转相除法 摘要:解题思路:1.个人思路比较复杂2.高赞的辗转相除法思路注意事项:参考代码:本人题解记录如下#include<stdio.h> int main() { int m,n,i,j; …… 题解列表 2023年10月27日 0 点赞 0 评论 270 浏览 评分:0.0
与2无关的数 摘要:参考代码: ```c #include int m(int a) { while(a) { int b=a%10; if(b==2) …… 题解列表 2023年10月27日 0 点赞 0 评论 474 浏览 评分:0.0
筛选N以内素数 摘要:解题思路:1.遍历2-N的每一个数2.用求模方式判断是否是素数注意事项:参考代码:#include<stdio.h> int main() { int n,i,j; scanf…… 题解列表 2023年10月27日 0 点赞 0 评论 305 浏览 评分:0.0
相对简单一点 摘要:```cpp #include using namespace std; int a[10][10]; int main() { int n; while (cin >> n){ …… 题解列表 2023年10月27日 0 点赞 1 评论 416 浏览 评分:10.0
1259:送分题素数(C语言)(略微繁琐,但便于理解) 摘要:解题思路:对于素数的输出,我们可以简单地总他的定义入手,先回顾一遍素数(质数)的定义:对于一个不为1的正整数,如果他的因数只有1与这个书本身,那么我们称这个书为素数。通过定义我们可以很清晰地得出我们的…… 题解列表 2023年10月27日 0 点赞 0 评论 771 浏览 评分:9.9
蛇形填数java思路易懂 摘要:解题思路:小白都能看懂注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] ar…… 题解列表 2023年10月27日 0 点赞 0 评论 713 浏览 评分:9.9
编写题解 3007: 收费 摘要:**code:** ```C++ #include using namespace std; int main() { double n; cin>>n; co…… 题解列表 2023年10月27日 0 点赞 0 评论 446 浏览 评分:9.9
你猜适不适合晨练呀 摘要:**代码:** ```C++ #include using namespace std; int main() { int t; cin>>t; if(t>=25&&t…… 题解列表 2023年10月27日 0 点赞 0 评论 402 浏览 评分:0.0
2114: 信息学奥赛一本通T1173-阶乘和 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;import java.math.BigInteger;public class Main { public stati…… 题解列表 2023年10月27日 0 点赞 0 评论 414 浏览 评分:0.0
找出最长的字符串来(C语言) 摘要:参考代码: ```c #include #include int main() { char str[5][100]; int len[5]={0}; int i=0; fo…… 题解列表 2023年10月27日 0 点赞 0 评论 563 浏览 评分:0.0