Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
888 | 张宸瑞 | 我家的门牌号 | C++ | Runtime Error | 1994 MS | 256 KB | 363 | 2023-05-13 15:37:41 |
#include <iostream> #include <string> using namespace std; int main() { int k,x,n; int num=0; cin>>n; for(x=1;x<=100000;x++){ for(k=1;k<=x;k++){ for(int i=0;i<k;i++){ num+=i; } if(num-2*k==n){ cout<<k<<' '; } } } return 0; }
Runtime Error:[ERROR] A not allowed system call. Call ID:275