Demo entry 6322368

sdas

   

Submitted by anonymous on Nov 12, 2016 at 05:05
Language: C++. Code size: 312 Bytes.

	int n, m;
	cin >> n >> m;
	int *nums = new int[n];
	int *mins = new int[m];
	int *maxs = new int[m];
	for (int i = 0; i < n; i++)//n次输入
	{
		int tmp; cin >> tmp;
		nums[i] = tmp;
	}
	for (int i = 0; i < m; i++)
	{
		int tmp1, tmp2;
		cin >> tmp1 >> tmp2;
		mins[i] = tmp1;
		maxs[i] = tmp2;
	}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).