mirror of
https://github.com/xlucn/PAT.git
synced 2026-10-03 00:23:15 +08:00
21 lines
267 B
C
21 lines
267 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
int N, n, m, m0 = -1, count = 0;
|
|
|
|
scanf("%d", &N);
|
|
|
|
for(n = 1; n <= N; n++)
|
|
{
|
|
m = n / 2 + n / 3 + n / 5;
|
|
if(m > m0)
|
|
count++;
|
|
m0 = m;
|
|
}
|
|
|
|
printf("%d", count);
|
|
|
|
return 0;
|
|
}
|