| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71181 | sh25_zhangjiajia | 鸡尾酒疗法 | C++ | 通过 | 0 MS | 244 KB | 511 | 2025-10-24 15:40:25 |
#include <iostream> using namespace std; int main() { int n, total, effective; cin >> n; cin >> total >> effective; double base = (double)effective / total; for(int i = 1; i < n; i++) { cin >> total >> effective; double rate = (double)effective / total; if(rate - base > 0.05) cout << "better" << endl; else if(base - rate > 0.05) cout << "worse" << endl; else cout << "same" << endl; } return 0; }