1110번

· 백준
코드#include #include #include #include #include using namespace std;typedef long long ll;int res;string s, n;void FASTIO() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);}int main() { FASTIO(); cin >> n; s = n; // 비교할 값 저장 while (1) { if (n.length() == 1) { string m = "0"; m += n; // 문자열 앞에 더해주어야 함 n = m; } int tmp = 0; string stmp; for (int i = 0; i 풀이문제에 있는 조건을 그대로..