摘要:
先是往HashSet中添加元素用到的add()方法 public class demo{ public static void main(String[] args) { HashSet<String> set = new HashSet<String>(); set.add("ada"); } } 阅读全文
摘要:
习题2-1水仙花数(daffodil) 输出1000-999中所有的水仙花数。若三位数ABC满足ABC = A3+B3+C3,则称其为水仙花数。 Java: package suanfa; public class T1_1 { public static void main(String[] ar 阅读全文
摘要:
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<time.h> int main() { const int MOD=1000000; int i,j,n,s=0; int factorial 阅读全文