#include<stdio.h>
int main() {
int n, a, b;
scanf("%d%d%d", &n, &a, &b);
int v1, v2;
v1 = n /( 2 * b) + n /( 2 * a);
v2 = n /( 2 * b) - n / (2 * a);
if (v1 >= v2) {
printf("%2d%2d", v1, v2);
}
return 0;
}

2 comments

  • 1

Information

ID
8
Time
1000ms
Memory
256MiB
Difficulty
7
Tags
(None)
# Submissions
6375
Accepted
1392
Uploaded By