跳到正文

limingze668

1499895

在洛谷打开
资料、奖项与版本

资料

编号
1499895
抓取

#include<bits/stdc++.h> using namespace std; int main() { double x,y,a,b,k,n; cin>>n; x=1b/a; k=0.5; for(int i=2;i<=n;i++) { cin>>a>>b; y=1b/a; if(x-y>k) cout<<“better”; if(x-y<k) cout<<“worse”; else cout<<“same”; } return 0; }

还没有收录这位用户的文章。