mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-12 05:26:28 +00:00
23 lines
364 B
C++
23 lines
364 B
C++
|
#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;
|
||
|
}
|