2021团体程序设计天梯赛 L1-4 降价提醒机器人

思路:

水题,略过

Tip:

#include <bits/stdc++.h>

using namespace std;

int main() {
    int t;
    double n;
    cin >> t >> n;
    while (t--) {
        double a;
        cin >> a;
        if (a < n)
            printf("On Sale! %.1f\n", a);
    }
    return 0;
}

  

posted @ 2021-04-27 10:09  Whiteying  阅读(378)  评论(0编辑  收藏  举报