Accepted
Code
#include<iostream>
using namespace std;
int main(){
int a,b,c;
int d,e,f;
cin >> a >> b >>c;
cout << endl;
cin >> d >> e >> f;
if((1 <= a,b,c) && (a,b,c <= 1000000)){
if((b % a) > ( e % d)){
cout << "Alice";
}
else if((b % a) < (e % d)){
cout << "Bob";
}
else if((b % a) == (e % d)){
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 07:05:23
- Judged At
- 2025-02-26 07:05:23
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 640.0 KiB