Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6297 | 詹梓涵 | 11种树 | C++ | Wrong Answer | 0 MS | 260 KB | 406 | 2025-01-21 11:59:50 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n=0,k=0,z=0,a=0,b=0; cin>>n>>k; z=n/k; a=z*k; b=n-a; if(b>=1){ z=z+1; } cout<<z<<endl; return 0; }
------Input------
596 99
------Answer-----
8
------Your output-----
7