跳到正文

剪贴板

剪贴板 s1ddruly

原文
剪贴板信息

剪贴板信息

收录
更新

bulid

C++
#include<bits/stdc++.h>
#include<time.h>
using namespace std;
signed main(){
	freopen("apple.in", "w", stdout);
	srand(time(0));
	ios::sync_with_stdio(0);
	cin.tie(nullptr);
	cout.tie(nullptr);
	int l = 1000000, r = 2147483600;
	cout << rand() % (r - l + 1) + l;
	return 0;
}

对拍

C++
#include<bits/stdc++.h>
using namespace std;
clock_t st, ed;
int t;
signed main(){
	ios::sync_with_stdio(0);
	cin.tie(nullptr);
	cout.tie(nullptr);
	while(++t){
		system("bulid.exe");

		st = clock();
		system("apple.exe");
		ed = clock();

		system("std_apple.exe");

		cout << t << endl;
		cout << "时长:" << (double)(ed - st) / CLOCKS_PER_SEC;
		if(system("fc apple123.out std.out")){
			break;

		}
	}
	return 0;
}