| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66188 | vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 完美立方 | C++ | Accepted | 14 MS | 276 KB | 353 | 2024-03-02 17:39:19 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e; cin>>a; for(b=2;b<=a;b++) for(c=2;c<a;c++) for(d=c;d<a;d++) for(e=d;e<a;e++){ if(c*c*c+d*d*d+e*e*e==b*b*b){ cout<<"Cube = "<<b<<", Triple = ("<<c<<','<<d<<','<<e<<")"<<endl; } } return 0; }