Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Archives
Today
Total
관리 메뉴

게임 개발 메모장

7. 숫자의 총 개수 본문

문제 해결력 훈련

7. 숫자의 총 개수

Dev_Moses 2024. 1. 8. 15:58

 

#include <iostream>

using namespace std;

int main()
{
	int n;
	cin >>n;

	int Count = 0;
	for (int i = 1; i <= n; ++i)
	{
		Count += (i / 10) + 1;
	}

	cout << Count << " ";
}

'문제 해결력 훈련' 카테고리의 다른 글

9. 가장 많이 사용된 자릿수  (0) 2024.01.08
8. 뒤집은 소수  (0) 2024.01.08
6. 자릿수의 합  (1) 2024.01.08
5. 모두의 약수  (0) 2024.01.08
4. 영어 단어 복구  (0) 2024.01.08