题解列表

筛选

角谷猜想(C++简单递归)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int f(int x) {     if(x%2==0)     {    ……

舍罕王的失算(简单C++)

摘要:解题思路:注意事项:数值很大,但是在usigned long long int范围里面,因此可以用其存储参考代码:#include<iostream> using namespace std; i……

常规发处理变量

摘要:解题思路:注意事项:调用fun()函数时,注意参数参考代码:#include<stdio.h> int fun(int num) { int a, b, c, d; a = num / 1……

2916: 谁考了第k名

摘要:解题思路:注意事项:参考代码://冒泡排序 #include <stdio.h> int main() {     int n = 0, k = 0, a[105] = {0};//变量的声明……

2925: 单词排序

摘要:解题思路:注意事项:参考代码://字符串的排序(冒泡排序) #include <stdio.h> #include <string.h> int main() {     int n = 0……

JAVA完数的判断

摘要:解题思路:注意事项:参考代码:import java.text.DecimalFormat;import java.util.Scanner;public class Main {    public……

2924: 明明的随机数

摘要:解题思路:注意事项:参考代码://桶排序 #include <stdio.h> int main() {     int n = 0, a = 0, sum = 0, t[1005] = {0……