Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
2551 | 陈颖钧 | 鸡尾酒疗法 | C++ | Wrong Answer | 10 | 1 MS | 260 KB | 368 | 2024-12-15 17:50:08 |
#include<bits/stdc++.h> using namespace std; int main(){ double n,i,x,a,b,y,c,d; cin>>n; cin>>a>>b; x=(a-b)/10.0; for(i=1;i<=n-1;i++){ cin>>c>>d; y=(c-d)/10.0; if(y-x>5){ cout<<"better"; }else if(x-y>5){ cout<<"worse"; }else{ cout<<"same"; } } }