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