| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148050 | 罗迎甲 | 14能吸多少根烟 | C++ | Compile Error | 0 MS | 0 KB | 214 | 2026-02-09 15:26:57 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,k,a=0,sum=0; cin>>n>>k; while(n!=0){ sum+=n; a+=n; n=a/k; a%=k; } cout<<sum<<endl; return 0;
Main.cc: In function 'int main()':
Main.cc:15:12: error: expected '}' at end of input
return 0;
^