Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71169 sh25_zhangjiajia 鸡尾酒疗法 C++ 编译错误 0 MS 0 KB 514 2025-10-24 15:31:41

Tests(0/0):


#include <bits/stdc++.h> using namespace std; int main() { int n; double a,b,c,ai,bi,ci; cin >>a>>b; c=a/b; for(int i = 1;i<n;i++) { cin >>ai>>bi; ci=ai/bi; if(c==ci) { cout <<"same"<<endl; } if(c>ci) { cout <<"worse"<<endl; } if(c<ci] { cout <<"better"<<endl; } } return 0; }


测评信息: