백준 1676 c++ 팩토리얼 0의 개수 3 팩토리얼은 6이기 때문에 0이 없으므로 -> 0 10팩토리얼은 뒤에서부터 0의 개수가 2개이므로 -> 2 가 출력되어야 한다. #include using namespace std; int main() { int N; cin >> N;//입력받을 정수 int result = 0; for (int i = 1; i 백준 c++/(1-1)백준 c++ 알고리즘 기초 2022.07.06