提交时间:2024-12-20 14:38:31
运行 ID: 58879
#include<bits/stdc++.h> using namespace std; int main() { int n0,n1,n2,year; cin>>n0>>n1>>n2>>year; if(year==2000){ cout<<n0<<endl; cout<<0; } if(year==2001){ cout<<n1<<endl; cout<<n1-n0; } if(year==2002){ cout<<n2<<endl; cout<<n2-n1; } return 0; }