Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
36 | Benson | 完美立方 | C++ | Runtime Error | 1991 MS | 264 KB | 503 | 2022-07-18 02:38:11 |
# include<iostream> using namespace std; int main(){ int n,a,b,c,d; cin>>n; for(a=1;a<=n;a++) { for(d=1;d<=a;b++) { for(c=1;c<=d;c++) { for(b=1;b<=c;b++) { if(a*a*a==b*b*b+c*c*c+d*d*d) { cout<<"Cube="<<a<<", Triple=("<<b<<","<<c<<","<<d<<",)"; } } } } } return 0; }
Runtime Error:[ERROR] A not allowed system call. Call ID:275