• 个人简介

    rand() % (b - a + 1) + a:生成a~b的随机整数

    造数据模板

    #include <bits/stdc++.h>
    using namespace std;
    void zh(string sss, char xxx[]) {
        for (int i = 0; i < sss.size(); ++i) {
            xxx[i] = sss[i];
        }
        return;
    }
    int main() {
        srand((unsigned)time(NULL));
        for (int i = 1; i <= 95; ++i) {
            string xxx = "water" + to_string(i) + ".in";
            char sss[10005], ddd[10005];
            zh(xxx, sss);
            freopen(sss, "w", stdout);
            
            long long a = 0, b = 0, c = 0, d = 0;
    		string str1 = "", str2 = "";
    
            cout; // 输入样例
    
            xxx = "water" + to_string(i) + ".out";
            zh(xxx, ddd);
    
            freopen(sss, "r", stdin);
            freopen(ddd, "w", stdout);
    
            cout; // 输出样例
        }
        return 0;
    }
    
  • 通过的题目

  • 最近活动

    This person is lazy and didn't join any contests or homework.
  • 最近编写的题解

    This person is lazy and didn't write any solutions.
  • Stat

  • Rating

题目标签

搜索
3
深度优先搜索
3
DFS
3
2
递归
2
2002
1
系统测试
1
O2优化
1
NOIp 普及组
1
素数判断
1
质数
1
筛法
1
广度优先搜索
1
BFS
1
数论
1
数学
1
线性结构
1