Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
14266 | chibubao | 小明三年身高 | C++ | Accepted | 0 MS | 248 KB | 194 | 2023-04-12 13:12:49 |
#include<iostream> using namespace std; int main() { int a,b,c,year; cin>>a>>b>>c>>year; if(year==2001) { cout<<b<<endl<<b-a; } if(year==2002) { cout<<c<<endl<<c-b; } }