Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140234 gqj 11种树 C++ Wrong Answer 0 MS 272 KB 193 2025-12-13 17:28:50

Tests(0/11):


Code:

#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a%b==0){ cout<<a/b; }else if(a%b==1){ cout<<(a-1)*b+1; }else if(a%b!=0&&a%b!=1){ cout<<a/b; } }


Run Info:

------Input------
1034 99
------Answer-----
12
------Your output-----
10