Accepted
Code
#include<bits/stdc++.h>
using namespace std;
int main ()
{
int a,b,c;
cin>>a>>b>>c;
int d,e,f;
cin>>d>>e>>f;
long long res1=b-(a*c);
long long res2=e-(d*f);
if (res1>res2)
{
cout<<"Alice";
}
else if (res1<res2)
{
cout<<"Bob";
}
else
{
cout<<"Draw";
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1177 Remainder Game
- Contest
- Intra LU IEEE Beginner Programming Contest
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-02-26 05:58:54
- Judged At
- 2025-02-26 05:58:55
- Judged By
- Score
- 100
- Total Time
- 4ms
- Peak Memory
- 532.0 KiB