Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1948 吴奕希 11种树 C++ Accepted 0 MS 260 KB 249 2023-12-02 17:35:02

Tests(10/10):


Code:

# include<iostream> using namespace std; int main() { int n,k,i=0,count=1; cin>>n>>k; while(n-i>k) { i += k; count++; } if(n-i>=1) { count++; } cout<<count; return 0; }