Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1946 | 吴奕希 | 11种树 | C++ | Wrong Answer | 0 MS | 256 KB | 249 | 2023-12-02 17:33:25 |
# 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(k-i>=1) { count++; } cout<<count; return 0; }
------Input------
596 99
------Answer-----
8
------Your output-----
2