Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
42384 | teacher_lu | 小明三年身高 | C++ | Accepted | 0 MS | 244 KB | 226 | 2024-02-26 20:53:35 |
#include <bits/stdc++.h> using namespace std; int main(){ int a[3]; cin >> a[0] >> a[1] >> a[2]; int x; cin >> x; x = x - 2000; cout << a[x] << endl; cout << a[x] - a[x-1]; return 0; }