制作测试数据

#include <bits/stdc++.h> 
using namespace std;
int a[100];
int main(){
	freopen("C:\\Users\\DELL\\Desktop\\01.txt", "r", stdin);
	freopen("C:\\Users\\DELL\\Desktop\\02.txt", "w", stdout);
	int n;
	cin >> n;
	for(int i=1; i<=n; i++){
		cin >> a[i]; 
	}
	for(int i=1; i<=n; i++){
		cout << a[i] << endl;
	}
	return 0;
}

猜你喜欢

转载自blog.csdn.net/sirius_han/article/details/80527763