编写题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout…… 题解列表 2024年07月23日 1 点赞 0 评论 669 浏览 评分:9.9
编写题解 2776: A*B问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout…… 题解列表 2024年07月23日 0 点赞 0 评论 233 浏览 评分:9.9
素数筛选法(埃拉托斯特尼方法)的代码实现 摘要:首先,我们应当先复习一下原始的筛选法原理,先圈出2,并且划掉列表中2的倍数(即其他偶数),然后回到开始,圈出第一个没有被画掉的数,画掉剩下数表中他的所有倍数。重复这一过程足够多次数,剩下的没有被画掉的…… 题解列表 2024年07月23日 0 点赞 0 评论 314 浏览 评分:9.9
编写题解 1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c…… 题解列表 2024年07月23日 0 点赞 0 评论 1185 浏览 评分:9.9
母牛的故事(数组做法,个人觉得用数组会更加形象点,比用函数会好) 摘要:#include<stdio.h>int main(){ int n; while(~scanf("%d",&n)){ if(n==0)break; int a[n]; …… 题解列表 2024年07月23日 0 点赞 0 评论 235 浏览 评分:9.9
优质题解,回归真神的初始途径 摘要:解题思路:注意事项:参考代码:a=int(input())b=a%2if b==0: print("even")else : print("odd")…… 题解列表 2024年07月23日 0 点赞 0 评论 485 浏览 评分:9.9
优质题解,回归真神的初始途径 摘要:解题思路:注意事项:参考代码:a=input()if ord(a)%2==0: print("NO")else: print("YES")…… 题解列表 2024年07月23日 0 点赞 0 评论 474 浏览 评分:9.9
优质题解,回归真神的初始途径 摘要:解题思路:a,b=map(int,input().split())if a>b: print(">")elif a==b: print("=")else: print("<")…… 题解列表 2024年07月23日 0 点赞 0 评论 576 浏览 评分:9.9
C语言求解亲密数(通俗易懂) 摘要:方法一:按照题目一步一步计算,先求A的因子之和是否是B的值,再求B的因子之和是否是A的值优缺点:优点:通俗易懂,条理清晰缺点:运算量大,时间复杂度太高示例代码:#include <stdio.h> …… 题解列表 2024年07月24日 0 点赞 0 评论 571 浏览 评分:9.9
1046: [编程入门]自定义函数之数字后移 摘要:```cpp #include using namespace std; int a[100]; int hy(int n,int m){ for(int i=n-m+1;im; hy…… 题解列表 2024年07月24日 2 点赞 0 评论 278 浏览 评分:9.9