mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-28 13:51:59 +00:00
739. 数组选择
https://www.acwing.com/problem/content/submission/code_detail/14063087/
This commit is contained in:
parent
9723c52fc2
commit
7b0bad68ac
22
AcWing/739/739.cpp
Normal file
22
AcWing/739/739.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
const char endl = '\n';
|
||||
|
||||
double x;
|
||||
|
||||
int main() {
|
||||
std::ios::sync_with_stdio(false);
|
||||
|
||||
for (int i = 0; i < 100; i++) {
|
||||
cin >> x;
|
||||
|
||||
if (x <= 10) {
|
||||
cout << "A[" << i << "] = " << std::fixed << std::setprecision(1) << x << endl;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user