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

Tests(0/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; }


Run Info:

------Input------
596 99
------Answer-----
8
------Your output-----
2