Accepted
Code
#include<stdio.h>
int main() {
int t;
scanf("%d", &t);
int a, b, c, d, e, f;
while (t--) {
scanf("%d %d %d", &a, &b, &c);
if (a >= c) {
d = a - c;
e = b;
} else {
d = 0;
f = c - a;
if (b >= f) {
e = b - f;
} else {
e = 0;
}
}
printf("%d %d\n", d, e);
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1187 Ticket Battle: Hridoy vs Kamona
- Contest
- Brain Booster #9
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2025-04-06 16:01:32
- Judged At
- 2025-04-06 16:01:32
- Judged By
- Score
- 100
- Total Time
- 46ms
- Peak Memory
- 1.066 MiB