Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133725 周宸宇 11种树 C++ Accepted 1 MS 272 KB 423 2025-10-20 18:46:08

Tests(11/11):


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(){ double n,k,s=0; cin>>n>>k; s=s+int(n/k); if(n-s*k>1){ s=s+1; cout<<s+1; } else{ cout<<s+1; } return 0; }