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;
}
posted @ 2024-08-17 01:16  Frodnx  阅读(39)  评论(0)    收藏  举报