Accepted
Code
#include<stdio.h>
int main() {
int a,b,c,d,e,f;
scanf("%d %d %d", &a, &b, &c);
scanf("%d %d %d", &d, &e, &f);
long long alice = b - (1LL * a * c);
long long bob = e - (1LL * d * f);
if (alice == bob) {
printf("Draw");
}
else if (alice > bob){
printf("Alice");
}
else {
printf("Bob");
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1177 Remainder Game
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2025-07-12 11:52:36
- Judged At
- 2025-07-12 11:52:36
- Judged By
- Score
- 100
- Total Time
- 0ms
- Peak Memory
- 344.0 KiB