不会的看这里

C20220045 2023-03-19 16:22:34

#include <bits/stdc++.h> using namespace std; int main() { int i,n,j,j1,ji,wei; cin>>n>>ji>>wei; for(i=2;i<=n;i++) { cin>>j>>j1; if(1.0j1/j-wei1.0/ji >0.05) { cout<<"better"<<endl; } else if(wei1.0/ji-1.0j1/j>0.05) { cout<<"worse"<<endl; } else { cout<<"same"<<endl; } } return 0; }