Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
40243 wuxinyue 鸡尾酒疗法 C++ 编译错误 0 MS 0 KB 435 2024-02-08 18:46:27

Tests(0/0):


#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int i=1; double a,b; cin>>a; cin>>b; int x=(a/b+a%b)*100; while(i<=n-1){ int c,d; cin>>c; cin>>d; int y=(c/d+c%d)*100; if (y-x>5){ cout<<"same"<<endl; } else if (x-y>5){ cout<<"worse"<<endl; } else{ cout<<"better"<<endl; } i++; } return 0; }


测评信息: