Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
14268 | chibubao | 小明十年身高 | C++ | Accepted | 0 MS | 252 KB | 200 | 2023-04-12 13:17:55 |
#include<iostream> using namespace std; int main() { int a[10]; int year,i; for(i=0;i<10;i++) cin>>a[i]; cin>>year; cout<<a[year-2000]<<endl; cout<<""<<a[year-2000]-a[year-2000-1]; }