[문제 링크] : https://www.acmicpc.net/problem/1871#include using namespace std;int main(){ int T; string S; cin >> T; while(T--){ cin >> S; int Ans = abs(((S[0] - 'A') * 26 * 26 + (S[1] - 'A') * 26 + (S[2] - 'A')) - ((S[4] - '0') * 1000 + (S[5] - '0') * 100 + (S[6] - '0') * 10 + (S[7] - '0'))); if(Ans