#include <iostream>
#include <string>
using namespace std;
int main() {
int T;
string s;
cin >> T;
while (T-- > 0) {
cin >> s;
cout << (s[0]-'0')+ (s[2]-'0')<<"\n";
}
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 10974๋ฒ - ๋ชจ๋ ์์ด (0) | 2021.10.25 |
---|---|
[๋ฐฑ์ค,c++] 10973๋ฒ - ์ด์ ์์ด (0) | 2021.10.25 |
[๋ฐฑ์ค,c++] 10972๋ฒ - ๋ค์ ์์ด (0) | 2021.10.25 |
[๋ฐฑ์ค,c++] 10951๋ฒ - A+B-4 (0) | 2021.10.25 |
[๋ฐฑ์ค,c++] 10950๋ฒ - A+B-3 (0) | 2021.10.25 |
[๋ฐฑ์ค,c++] 10872๋ฒ - ํฉํ ๋ฆฌ์ผ (0) | 2021.10.25 |
๋๊ธ