| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74844 | 刘宸溪 | 14能吸多少根烟 | C++ | Runtime Error | 0 MS | 268 KB | 285 | 2024-05-26 09:41:16 |
#include <iostream> #include<iomanip> #include <cstring> using namespace std; int main(){ int cir,ba,sum = 0,newcir = 0,b = 0,k; cin>>cir; sum += cir; ba = cir; while(ba >= k){ newcir = ba/k; b = ba % k; ba = newcir + b; sum += newcir; } cout<<sum; }
Runtime Error:Floating point exception