Created
October 15, 2015 21:00
-
-
Save pazthor/be5c66f77eca71a1a8b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
*problem: http://codeforces.com/contest/577/problem/A | |
* | |
*solution: http://codeforces.com/blog/entry/20226 | |
*/ | |
#include<stdio.h> | |
int main(){ | |
int n,i, x,j; | |
int count = j=0; | |
scanf("%d %d", &n, &x); | |
if (x <= n) count++; | |
for( i = 2 ;i <= n ; i++){ | |
j = x / i; | |
if( (j * i) == x && j <= n ) count++; | |
} | |
printf("%d\n", count); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment