Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
8186 谢锦卓 11种树 C++ Accepted 0 MS 260 KB 399 2025-06-14 20:52:44

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,k,z=0; cin>>n>>k; if(n%k>1){ z=n/k+2; } else{ z=n/k+1; } cout<<z<<endl; return 0; }