2020团体程序设计天梯赛 L1-3 洛希极限

思路:

水题,略过

Tip:

#include <bits/stdc++.h>

using namespace std;

int main() {
    double a, b, c;
    cin >> a >> b >> c;
    if (b == 0) {
        a *= 2.455;
        printf("%.2lf", a);
    } else {
        a *= 1.26;
        printf("%.2lf", a);
    }
    if (a < c) {
        cout << " ^_^" << endl;
    } else {
        cout << " T_T" << endl;
    }
    return 0;
}

  

原文地址:https://www.cnblogs.com/Whiteying/p/14056464.html