Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
54386 | zhangweiran | 小明三年身高 | C++ | Accepted | 0 MS | 252 KB | 221 | 2024-10-27 16:13:40 |
#include <bits/stdc++.h> using namespace std; int a[3]; int main(){ for(int i=0;i<=2;i++){ cin>>a[i]; } int when; cin>>when; cout<<a[when%10]<<endl; cout<<a[when%10]-a[when%10-1]; return 0; }