Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
147243 洛谷号:1021020 水仙花数 C++ Accepted 100 0 MS 260 KB 296 2024-05-18 08:06:52

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main() { for(int i= 1; i<=9; i++) { for(int j = 0; j<=9; j++) { for(int k = 0; k<=9; k++) { if(pow(i, 3)+pow(j, 3)+pow(k, 3)==i*100+j*10+k) { cout << i*100+j*10+k << endl; } } } } return 0; }


Judgement Protocol: