mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 14:56:27 +00:00
738. 数组填充
https://www.acwing.com/problem/content/submission/code_detail/1094418/
This commit is contained in:
parent
8b2a33363e
commit
9723c52fc2
14
AcWing/738/738.cpp
Normal file
14
AcWing/738/738.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int v;
|
||||
cin >> v;
|
||||
|
||||
for (int i = 0, x = v; i < 10; i++, x *= 2) {
|
||||
printf("N[%d] = %d\n", i, x);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user