| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74832 | 单明哲 | 14能吸多少根烟 | C++ | Wrong Answer | 0 MS | 272 KB | 260 | 2024-05-26 09:25:32 |
#include <iostream> #include <iomanip> using namespace std; int main(){ int cir,sum=0,ba,newcir = 0; cin>>cir; sum += cir; ba = cir; while(ba != 0){ newcir = ba/5; ba = newcir; sum += newcir; } cout<<sum; }
------Input------
159 16
------Answer-----
169
------Your output-----
197