摘要:DescriptionOverflowWrite a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:A -Integer InquiryTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusDescriptionInteger InquiryOne of the first users of BIT's ne...
阅读全文
摘要:http://fediafedia.com/neo/
阅读全文
摘要:所谓的大数就是用整形存不下的数;EG : 123466789123456789由于数组能够进行逐操作;所以考虑到用数组来逐一存放这个大数的每一位元素;这时候问题来了;1 怎么解决该数的输入以及将其存放到数组里面;2 如何解决进位;3 万一第一位是0如何解决;C语言有一种输入方法为%s;也就是所谓的字...
阅读全文
摘要: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 ...
阅读全文
摘要:选课时间(题目已修改,注意读题)Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1516Accepted Submission(s): 1253Pr...
阅读全文
摘要: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 ...
阅读全文
摘要: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 ...
阅读全文
摘要: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...
阅读全文
摘要: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))...
阅读全文
摘要: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 ...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文