10 2014 档案

UVA_ Overflow
摘要:DescriptionOverflowWrite a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the... 阅读全文

posted @ 2014-10-25 15:32 M.D.LUFFI 阅读(136) 评论(0) 推荐(0)

UVA_If We Were a Child Again
摘要:DescriptionIf We Were a Child Again “Oooooooooooooooh! If I could do the easy mathematics like my school days!! I can guarantee, that I’d not make any... 阅读全文

posted @ 2014-10-25 15:24 M.D.LUFFI 阅读(193) 评论(0) 推荐(0)

UVA_Product
摘要:DescriptionProductThe ProblemThe problem is to multiply two integers X, Y. (0 2 #include 3 #include 4 #include 5 #define UNIT 10 6 7 using n... 阅读全文

posted @ 2014-10-25 15:16 M.D.LUFFI 阅读(200) 评论(0) 推荐(0)

UVA_Integer Inquiry
摘要:A -Integer InquiryTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusDescriptionInteger InquiryOne of the first users of BIT's ne... 阅读全文

posted @ 2014-10-25 15:08 M.D.LUFFI 阅读(158) 评论(0) 推荐(0)

你也可以屌到爆的这样敲代码当黑客!
摘要:http://fediafedia.com/neo/ 阅读全文

posted @ 2014-10-25 12:05 M.D.LUFFI 阅读(194) 评论(0) 推荐(0)

大数相加_原创
摘要:所谓的大数就是用整形存不下的数;EG : 123466789123456789由于数组能够进行逐操作;所以考虑到用数组来逐一存放这个大数的每一位元素;这时候问题来了;1 怎么解决该数的输入以及将其存放到数组里面;2 如何解决进位;3 万一第一位是0如何解决;C语言有一种输入方法为%s;也就是所谓的字... 阅读全文

posted @ 2014-10-23 17:24 M.D.LUFFI 阅读(148) 评论(0) 推荐(0)

大数模板!
摘要:1 #include 2 #include 3 #include 4 #include 5 #define UNIT 10 6 7 using namespace std; 8 9 struct Bignum 10 { 11 int val[105]; 12 ... 阅读全文

posted @ 2014-10-22 10:31 M.D.LUFFI 阅读(105) 评论(0) 推荐(0)

ACM荣耀之路;
摘要:. 阅读全文

posted @ 2014-10-16 21:29 M.D.LUFFI 阅读(196) 评论(0) 推荐(0)

选课时间!
摘要:选课时间(题目已修改,注意读题)Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1516Accepted Submission(s): 1253Pr... 阅读全文

posted @ 2014-10-14 20:23 M.D.LUFFI 阅读(152) 评论(0) 推荐(0)

二叉树模板!
摘要:1 #include 2 #include 3 #include 4 #include 5 #define N 30 6 using namespace std; 7 8 struct tree 9 {10 int data;11 tree *parent;12 ... 阅读全文

posted @ 2014-10-14 20:04 M.D.LUFFI 阅读(116) 评论(0) 推荐(0)

STL队列!
摘要:1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 queue q; 9 10 int main()11 {12 freopen("ACM.txt","r",stdin);13 ... 阅读全文

posted @ 2014-10-11 21:48 M.D.LUFFI 阅读(83) 评论(0) 推荐(0)

回文数!
摘要:1 #include 2 #include 3 #include 4 using namespace std; 5 6 int main() 7 { 8 freopen("ACM.txt","r",stdin); 9 int t;10 cin>>t;11 wh... 阅读全文

posted @ 2014-10-11 21:43 M.D.LUFFI 阅读(115) 评论(0) 推荐(0)

KMP模板!
摘要:1 int BFMatch(char *s,char *p) 2 { 3 int i,j; 4 i=0; 5 while(i<strlen(s)) 6 { 7 j=0; 8 while(s[i]==p[j]&&j<strlen(p))... 阅读全文

posted @ 2014-10-10 21:54 M.D.LUFFI 阅读(89) 评论(0) 推荐(0)

并查集模板!
摘要:1 #include 2 #include 3 #include 4 #include 5 #define N 30 6 using namespace std; 7 8 int sum; 9 int ufs[N];10 11 void makeset(int x)12 {13 ... 阅读全文

posted @ 2014-10-10 20:24 M.D.LUFFI 阅读(99) 评论(0) 推荐(0)

《 字典树模板_非递归 》
摘要:1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 struct tree 8 { 9 int count;10 tree *next[26];11 };12 tree *head;13 14 voi... 阅读全文

posted @ 2014-10-09 21:14 M.D.LUFFI 阅读(174) 评论(0) 推荐(0)

链表模板!
摘要:1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 struct List 8 { 9 int val;10 List *next;11 };12 13 List *head;14 15 void I... 阅读全文

posted @ 2014-10-08 21:11 M.D.LUFFI 阅读(119) 评论(0) 推荐(0)

导航