mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-08 13:58:48 +00:00
740. 数组变换
https://www.acwing.com/problem/content/submission/code_detail/6846263/
This commit is contained in:
parent
10fb2c5154
commit
f33a4c27a6
16
AcWing/740/740.cpp
Normal file
16
AcWing/740/740.cpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#include <bits/stdc++.h>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int n[25];
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
for (int i = 0; i < 20; i++) {
|
||||||
|
cin >> n[i];
|
||||||
|
}
|
||||||
|
reverse(n, n + 20);
|
||||||
|
for (int i = 0; i < 20; i++) {
|
||||||
|
cout << "N[" << i << "] = " << n[i] << endl;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user