Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
890 | 张宸瑞 | 我家的门牌号 | C++ | Runtime Error | 2001 MS | 272 KB | 309 | 2023-05-13 15:47:19 |
#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++){ num+=k; if(num-2*k==n){ cout<<k<<' '; } } } return 0; }
Runtime Error:[ERROR] A not allowed system call. Call ID:275