Bull Math Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 14972 Accepted: 7695 Description Bulls are so much better at math than the cows. They can multiply huge integers together and get perfectly precise answers ... or so they say. F…
题目链接:51nod 1027大数乘法 直接模板了. #include<cstdio> #include<cstring> using namespace std; ; ; ; int alen, blen; int ans_len; char a1[N], b1[N]; ], b[]; ]; ], int &len){ memset(c, , sizeof(c)); int L = strlen(s); len = L / DLEN; if(L%DLEN) len++;…
一. 题目 Exponentiation Time Limit: 500MS Memory Limit: 10000K Total Submissions: 156373 Accepted: 38086 Description Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of…
Train Problem II Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10372 Accepted Submission(s): 5543 Problem Description As we all know the Train Problem I, the boss of the Ignatius Train Sta…