12 solutions

  • 0
    @ 2024-8-20 1:23:38

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

    Information

    ID
    19
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    5
    Tags
    # Submissions
    8059
    Accepted
    2798
    Uploaded By