| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75204 | sh25_wangtaojie | 鸡尾酒疗法 | C++ | 通过 | 0 MS | 248 KB | 670 | 2025-12-05 15:31:51 |
#include <iostream> using namespace std; int main() { int n; cin >> n; double base_rate = 0.0; for (int i = 0; i < n; i++) { int total, effective; cin >> total >> effective; double rate = static_cast<double>(effective) / total; if (i == 0) { base_rate = rate; } else { double diff = rate - base_rate; if (diff > 0.05) { cout << "better" << endl; } else if (diff < -0.05) { cout << "worse" << endl; } else { cout << "same" << endl; } } } return 0; }