Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2279 | 邓程允 | 14能吸多少根烟 | C++ | Wrong Answer | 0 MS | 260 KB | 207 | 2023-12-23 16:38:47 |
# 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; d=a+c; } cout<<d+z; return 0; }
------Input------
175 15
------Answer-----
187
------Your output-----
196