| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159147 | 谭鑫哲 | 11种树 | C++ | Accepted | 2 MS | 272 KB | 432 | 2026-08-26 09:46:18 |
#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++; } } cout<<shu; return 0; }