mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 18:48:48 +00:00
737. 数组替换
https://www.acwing.com/problem/content/submission/code_detail/6943298/
This commit is contained in:
parent
66d4ab6f2c
commit
8b2a33363e
14
AcWing/737/737.cpp
Normal file
14
AcWing/737/737.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int x;
|
||||
|
||||
int main() {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
cin >> x;
|
||||
cout << "X[" << i << "] = " << (x <= 0 ? 1 : x) << endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user