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;
int res1 = b - (a*c);
int res2 = e - (d*f);
if(res1 > res2){
cout << "Alice" << endl;
} else if(res2 > res1){
cout << "Bob" << endl;
} else {
cout << "Draw" << endl;
}
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:50:45
- Judged At
- 2025-02-26 05:50:45
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 548.0 KiB