Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
14267 | chibubao | 小明十年身高 | C++ | Presentation Error | 0 MS | 244 KB | 201 | 2023-04-12 13:17:16 |
#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]; }