10728 - A simple set problem
raw download clone
C
views 18
,
size 172 b
#include <stdio.h>

int main(void)
{
    int n, x, y, z;

    scanf("%d%d%d%d", &n, &x, &y, &z);
    printf("%d %d", x + y + z - n, n - y - z);

    return 0;
}
close fullscreen
Login or Register to edit or fork this paste. It's free.