Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
51476 littletwleve 小明三年身高 C++ Accepted 1 MS 244 KB 221 2024-09-21 23:13:19

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int a[3]; int main(){ for(int i=0;i<=2;i++){ cin>>a[i]; } int year; cin>>year; cout<<a[year%10]<<endl; cout<<a[year%10]-a[year%10-1]; return 0; }


Judgement Protocol: