Accepted
Code
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, e, f;
cin >> a >> b >> c;
cin >> d >> e >> f;
int r1 = b%(a*c);
int r2 = e%(d*f);
if(r1>r2) cout<<"Alice"<<endl;
else if(r1<r2) cout<<"Bob"<<endl;
else cout<<"Draw"<<endl;
}
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 06:23:19
- Judged At
- 2025-02-26 06:23:19
- Judged By
- Score
- 100
- Total Time
- 4ms
- Peak Memory
- 764.0 KiB