1 条题解
-
0
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,d; double g,c,e,f; cin>>a; cin>>b>>c; c=c/b; for(int i=1; i<a; i++){ cin>>e>>f; g=f/e; if(g-c>0.05){ cout<<"better"<<endl; } else if(c-g>0.05){ cout<<"worse"<<endl; } else{ cout<<"same"<<endl; }
} return 0;
}
- 1
信息
- ID
- 407
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 9
- 标签
- 递交数
- 20
- 已通过
- 3
- 上传者