2 solutions

  • 0
    @ 2023-5-11 19:36:15
    #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;
    }
    
    
    
    
    
    

    Information

    ID
    105
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    4
    Tags
    # Submissions
    711
    Accepted
    303
    Uploaded By