-计算一个整数N的阶乘(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long long int n,i,j=1; …… 题解列表 2022年10月28日 0 点赞 0 评论 512 浏览 评分:8.0
计算t=1+1/2+1/3+...+1/n(C++超级简单) 摘要:解题思路:注意事项:用float会出现精度问题,double更精确参考代码:#include<iostream> using namespace std; #include<iomanip> i…… 题解列表 2022年10月28日 0 点赞 0 评论 367 浏览 评分:9.9
算1~N之间所有奇数之和(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,i,s=0; cin>>n…… 题解列表 2022年10月28日 0 点赞 0 评论 420 浏览 评分:9.9
角谷猜想(C++简单递归) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int f(int x) { if(x%2==0) { …… 题解列表 2022年10月28日 0 点赞 0 评论 677 浏览 评分:6.3
舍罕王的失算(简单C++) 摘要:解题思路:注意事项:数值很大,但是在usigned long long int范围里面,因此可以用其存储参考代码:#include<iostream> using namespace std; i…… 题解列表 2022年10月28日 0 点赞 0 评论 511 浏览 评分:9.9
常规发处理变量 摘要:解题思路:注意事项:调用fun()函数时,注意参数参考代码:#include<stdio.h> int fun(int num) { int a, b, c, d; a = num / 1…… 题解列表 2022年10月28日 0 点赞 0 评论 346 浏览 评分:0.0
2916: 谁考了第k名 摘要:解题思路:注意事项:参考代码://冒泡排序 #include <stdio.h> int main() { int n = 0, k = 0, a[105] = {0};//变量的声明…… 题解列表 2022年10月28日 0 点赞 0 评论 799 浏览 评分:9.7
2925: 单词排序 摘要:解题思路:注意事项:参考代码://字符串的排序(冒泡排序) #include <stdio.h> #include <string.h> int main() { int n = 0…… 题解列表 2022年10月28日 0 点赞 2 评论 581 浏览 评分:8.7
JAVA完数的判断 摘要:解题思路:注意事项:参考代码:import java.text.DecimalFormat;import java.util.Scanner;public class Main { public…… 题解列表 2022年10月28日 0 点赞 0 评论 576 浏览 评分:9.9
2924: 明明的随机数 摘要:解题思路:注意事项:参考代码://桶排序 #include <stdio.h> int main() { int n = 0, a = 0, sum = 0, t[1005] = {0…… 题解列表 2022年10月28日 0 点赞 0 评论 532 浏览 评分:9.9