51Nod 1015 水仙花數

思路:簡單題,打個表就行(當然也可以直接存數,但是小菜鳥的太懶了),代碼如下 #include<bits/stdc++.h> using namespace std; int arr[20]; int num = 0; void cal() { arr[num++]=153; for(int i = 154; i <= 999 ; i++) { int a
相關文章
相關標籤/搜索