Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
390 | 关清声 | 14能吸多少根烟 | C++ | Runtime Error | 1996 MS | 260 KB | 205 | 2022-08-13 15:54:10 |
#include<iostream> using namespace std; int main() { int n,k,sum=0; cin>>n>>k; while(n!=0) { sum+=n; int t=n%k; n/=k; n+=t; } cout<<sum; return 0; }
Runtime Error:[ERROR] A not allowed system call. Call ID:275