Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
32769 | lnx | 小明三年身高 | C++ | Accepted | 0 MS | 240 KB | 163 | 2023-12-02 19:33:53 |
#include<iostream> using namespace std; int main() { int a[3],k; cin>>a[0]>>a[1]>>a[2]>>k; int m=k-2000; cout<<a[m]<<endl<<(a[m]-a[m-1]); return 0; }