fork download
  1. #include<bits/stdc++.h>
  2. #define ll long long
  3. using namespace std;
  4. int main(){
  5. int t;
  6. cin>>t;
  7. while(t--){
  8. string s;
  9. cin>>s;
  10. cout<<int(s[0]+s[1]-2*'0')<<'\n';
  11. }
  12.  
  13. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Standard output is empty