Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159145 谭鑫哲 11种树 C++ Wrong Answer 1 MS 276 KB 451 2026-08-26 09:42:22

Tests(0/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(){ int n,k,shu=0; cin>>n>>k; while(n>=0){ n-=k; shu++; if(n<k&&n>=1){ shu++; break; } } cout<<shu; return 0; }


Run Info:

------Input------
1034 99
------Answer-----
12
------Your output-----
11