Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
32770 | lnx | 小明十年身高 | C++ | Accepted | 0 MS | 244 KB | 183 | 2023-12-02 19:34:00 |
#include<iostream> using namespace std; int main() { int a[9],k; for(int i=0;i<=9;i++) cin>>a[i]; cin>>k; int m=k-2000; cout<<a[m]<<endl<<(a[m]-a[m-1]); return 0; }