题解列表

筛选

DFS当中的大水题

摘要:``` #include #define int long long #define endl '\n' #define fi first #define se second using……

编写题解 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 遍历,将当前数字加……