Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
161594 王垚植 11种树 C++ Accepted 1 MS 272 KB 237 2026-10-06 11:35:41

Tests(11/11):


Code:

#include<bits/stdc++.h> 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; }