这个就是一道基本的小学题目,做过奥数的基本都有印象。
#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; }
By signing up a HFOJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your HFOJ universal account