#include <iostream> using namespace std; const int N = 1e5 + 10; int a[N], tmp[N]; int main() { int res=0; for(int i=1;i<=2021;i++) { for(int j=1;j<=2021;j++) { if(i*j<=2021) res++; } } printf("%d",res); return 0; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account