| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64622 | 张江鹏 | 完美立方 | C++ | Accepted | 7 MS | 268 KB | 343 | 2024-01-21 17:17:12 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int a=2;a<=n;a++){ for(int b=2;b<=a;b++){ for(int c=b;c<=a;c++){ for(int d=c;d<=a;d++){ if(a*a*a==b*b*b+c*c*c+d*d*d){ cout<<"Cube = "<<a<<", Triple = (" <<b<<","<<c<<","<<d<<")"<<endl; } } } } } return 0; }