L1-076 降价提醒机器人 分数 10
// 1'56"
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n, m;
cin >> n >> m;
for(int i = 1; i <= n; ++ i)
{
double d;
cin >> d;
if(d < (double)m) cout << fixed << setprecision(1) << "On Sale! " << d << endl;
}
return 0;
}
浙公网安备 33010602011771号