Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102179 | 李佳璟 | 11种树 | C++ | Accepted | 1 MS | 272 KB | 218 | 2024-12-21 12:36:00 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,k,a; cin>>n>>k; a=n/k; if(n%k==0) { cout<<a+1; } else if(n%k>1){ cout<<a+2; } else if(n%k<=1){ cout<<a+1; } return 0; }