There are several colored cubes. All of them are of the same size but they may be colored differently. Each face of these cubes has a single color. Colors of distinct faces of a cube may or may not be the same. Two cubes are said to be identically co…
Description There are several colored cubes. All of them are of the same size but they may be colored differently. Each face of these cubes has a single color. Colors of distinct faces of a cube may or may not be the same. Two cubes are said to be id…
水题:求n^3 = a^3 + b^3 + c^3 ;暴力即可 #include<iostream> using namespace std; int main(){ int n ; cin>>n; ; i <= n ; i++){ ; j <= n ; j++){ for(int k = j ; k <= n ; k++){ for(int l = k ; l <= n ; l++){ if(i*i*i==j*j*j+k*k*k+l*l*l) print…