| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148810 | Kevin | 完美立方 | C++ | Accepted | 4 MS | 272 KB | 347 | 2026-03-01 15:10:24 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int x=2;x<=n;x++){ for(int i=2;i<x;i++){ for(int j=i;j<x;j++){ for(int z=j;z<x;z++){ if(x*x*x==i*i*i+j*j*j+z*z*z){ cout<<"Cube = "<<x<<","<<" Triple = ("<<i<<","<<j<<","<<z<<")"<<endl; } } } } } return 0; }