Accepted
Code
#include<bits/stdc++.h>
using namespace std;
#define ll long long
void solve(){
ll a,b,c,d,e,f;
cin>>a>>b>>c>>d>>e>>f;
ll alice = b-(a*c);
ll bob = e-(f*d);
if(alice>bob){
cout<<"Alice"<<endl;
}else if(bob>alice){
cout<<"Bob"<<endl;
}
else if(bob==alice){
cout<<"Draw"<<endl;
}
}
int main(){
solve();
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1177 Remainder Game
- Contest
- Intra LU IEEE Beginner Programming Contest
- Language
- C++11 (G++ 13.2.0)
- Submit At
- 2025-02-26 06:08:10
- Judged At
- 2025-02-26 06:08:10
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 540.0 KiB