[CodeForces] 977A Wrong Subtraction C++ 문제 풀이
·
Archive/ProblemSolving
#INFO RATE : 800 출처 : Codeforces Round #479 (Div. 3) https://codeforces.com/problemset/problem/977/A #SOLVE 문제에서 주어진 조건대로 그대로 풀이하기만 하면 되는 간단한 문제였다. if the last digit of the number is non-zero, she decreases the number by one 만약 digit(n)의 마지막 자리의 수가 0으로 끝나지 않는다면 1을 뺀다. if the last digit of the number is zero, she divides the number by 10 (i.e. removes the last digit). 만약 digit(n)의 마지막 자리의 수가 0으로 ..