Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6295 詹梓涵 11种树 C++ Wrong Answer 0 MS 268 KB 398 2025-01-21 11:56:35

Tests(0/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=0,k=0,z=0; cin>>n>>k; z=n/k; k=z*k; n=n-k; if(n>=1){ z=z+1; } cout<<z<<endl; return 0; }


Run Info:

------Input------
596 99
------Answer-----
8
------Your output-----
7