题解列表

筛选

编写题解 2751: 超级玛丽游戏

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    cout<<"                ********"……

模拟数的进位运算

摘要:解题思路:如下注意事项:参考代码:#include<stdio.h>int main(){             int n,r;             scanf("%d%d",&n,&r); ……

计算素数和(用C++)

摘要:参考代码:#include<iostream> using namespace std; bool isprime(int x) { int count = 0; for (int i ……

母牛的故事

摘要:参考代码:import java.util.Scanner; public class Main {    public static void main(String[] args) {      ……

信息学奥赛一本通T1317-组合的输出

摘要:解题思路:-  combination 函数是一个递归函数,用于生成组合。- 当 index 等于 r 时,说明已经生成了一个组合,输出该组合。- 在循环中,从 start 到 n 遍历,将当前数字加……

使用sort函数排序

摘要:解题思路:使用sort函数直接排序然后相减把结果相加注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool compare(int a,in……

与7无关的数

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int main(){    int n;    cin >……

Hello,World(C++代码)

摘要:#include<iostream> using namespace std; int main(){ return 0; }解题思路:无,上面的是标准头文件注意事项:几个星号需打参考代码……