| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134260 | 蔡胤泽 | 完美立方 | C++ | Accepted | 21 MS | 268 KB | 469 | 2025-10-26 11:26:01 |
#include <bits/stdc++.h> using namespace std; int main() { int n, a, b, c, d; cin >> n; for(int i = 1;i <= n; i++) { for(int b = 2;b <= n;b++) { for(int c = b;c <= n;c++) { for(int d = c;d <= n;d++) { if(i * i * i == b * b* b + c* c* c + d * d* d) { cout << "Cube = "<< i<<", Triple = ("<<b<<","<<c<<","<<d<<")"; cout << endl; } } } } } return 0; }