poj 2521(水题)

#include<iostream>
using namespace std;
int main(){
    int n,m,p,c;
    while(scanf("%d%d%d%d",&n,&m,&p,&c)==4&&n){
        printf("%d\n",n+c-(m+c-p));
    }
    return 0;
}

 

posted @ 2021-11-29 16:04  智人心  阅读(26)  评论(0)    收藏  举报