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