1 solutions

  • 1
    @ 2025-6-15 11:30:31
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n,k;
    	cin>>n>>k;
    	if(n%(k+1)!=0)
    	{
    		cout<<1;
    	}
        else
        {
        	cout<<2;
    	}
        return 0;
    }
    
    

    Information

    ID
    202
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    3
    Tags
    (None)
    # Submissions
    14
    Accepted
    6
    Uploaded By