Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2282 | 邓小龙 | 14能吸多少根烟 | C++ | Wrong Answer | 0 MS | 264 KB | 207 | 2023-12-23 16:41:33 |
# include<iostream> using namespace std; int main(){ int a,b,c,d,z; cin>>a>>b; z=a; while(a>=b){ c=a/b; a=a%b+c; d=c; } cout<<d+z; return 0; }
------Input------
133 12
------Answer-----
145
------Your output-----
134