#include<stdio.h> int main() { int n; int max,min; scanf("%d", &n); if (n % 2 != 0) { printf("0 0\n"); return 0; } max = n / 2; if (n % 4 == 0) { min = n / 4; } else { min = n / 4 + 1; } printf("%d %d\n", min, max); return 0; } |
Double click to view unformatted code.