1 solutions

  • 0
    @ 2024-10-10 17:12:51

    这个就是一道基本的小学题目,做过奥数的基本都有印象。

    
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int n,k;cin>>n>>k;
    	if(n%(k+1)==0)cout<<2<<endl;
    	else cout<<1<<endl;
    	return 0;
    }
    
    
    • 1

    Information

    ID
    243
    Time
    1000ms
    Memory
    512MiB
    Difficulty
    9
    Tags
    # Submissions
    9
    Accepted
    5
    Uploaded By