龙凤苑4月2日练习赛

Done IOI Start at: 2026-4-2 14:00 96 hour(s) Host: 16
#include<bits/stdc++.h>
using namespace std;
int main() {
	int j = 0, tmp, a[110];
	do { 
		cin >> tmp;    tmp = 0   j=4 
		a[j] = tmp; // a[0] a[1] a[2] a[3]=0 
		j++;
	} while (tmp != 0); //用于使循环中止
	j--;//因为下标最大为n-1
	while (j--)   // j=1     j!=0 , j--
		cout << a[j] << ' ';

	return 0;
}

1

Status
Done
Rule
IOI
Problem
4
Start at
2026-4-2 14:00
End at
2026-4-6 14:00
Duration
96 hour(s)
Host
Partic.
16