#include #include #include #include #include #include using namespace std; int main(){ int t; cin >> t; vector s(t); for(int i=0; i> s[i]; for(int i=0; i= 10 ){ a[k] = to_string( tmp/10 + tmp%10 )[0]; }else{ a[k] = to_string(tmp)[0]; } } p++; } cout << a[0] << endl; } } return 0; }