VioletaBabel
8320번: 직사각형을 만드는 방법 본문
#include <stdio.h>
int main()
{
int n, count = 0;
scanf("%d", &n);
for (int i = 1; i*i <= n; ++i)
count += ((n / i) - (i - 1));
printf("%d", count);
}
'백준 > 백준-C' 카테고리의 다른 글
5063번: TGN (0) | 2017.05.13 |
---|---|
1160번: random number generator (실패) (0) | 2017.05.13 |
1620번: 나는야 포켓몬 마스터 이다솜 (0) | 2017.05.12 |
5639번: 이진 검색 트리 (0) | 2017.05.12 |
1427번: 소트인사이드 (0) | 2017.05.05 |
Comments