2018年8月29日

摘要: #include #include #include using namespace std; /* 求最小公倍数 */ vector Decomposition(int digit) { int actor = digit; vector arr; for (int i = 2;i Get(vector first,vector second) { ... 阅读全文
posted @ 2018-08-29 23:04 林小雨 阅读(193) 评论(0) 推荐(0)
 
摘要: 1 #include 2 using namespace std; 3 4 /* 5 *判断素数 6 */ 7 8 bool isPrime(unsigned long digit) 9 { 10 if(digit 1; 12 else if(digit % 2 == 0 || digit % 3 == 0) 13 ... 阅读全文
posted @ 2018-08-29 23:03 林小雨 阅读(184) 评论(0) 推荐(0)
 
摘要: 1 #include 2 using namespace std; 3 4 double sum(int args) 5 { 6 double result = 0; 7 for (int i = 0;i < args;i ++) 8 { 9 double part = 1; 10 for (int j = 0;j <... 阅读全文
posted @ 2018-08-29 23:02 林小雨 阅读(1274) 评论(0) 推荐(0)
 
摘要: 1 import sys 2 import re 3 4 # argv 是个列表,内容是文件的路径 5 def erase_mark(args): 6 mark = re.sub("//*.{1,1000}/*/","",args) 7 mark = re.sub("//.{1,1000}\n","",mark) 8 mark = re.sub("#.{... 阅读全文
posted @ 2018-08-29 23:00 林小雨 阅读(606) 评论(0) 推荐(0)
 
摘要: 1 #include 2 using namespace std; 3 4 template 5 class Seqlist 6 { 7 private: 8 type * data; 9 int length; 10 int MAXSIZE; 11 public: 12 Seqlist() 13 { 1... 阅读全文
posted @ 2018-08-29 22:58 林小雨 阅读(261) 评论(0) 推荐(0)