高精度计算与代数计算
nowting_csdn
这个作者很懒,什么都没留下…
展开
-
A+B
#include <iostream>#include <cstdio>#include <cstring>using namespace std;const int MAXLEN = 30;char *addition(char *m1, char *m2){ int i, len1, len2, len, c=0; int * t1, *...原创 2019-04-26 09:36:41 · 74 阅读 · 0 评论 -
公牛和母牛
公牛和母牛Language:Bull MathTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 16656 Accepted: 8491DescriptionBulls are so much better at math than the cows. They can multiply huge integers ...原创 2019-04-26 10:05:08 · 599 阅读 · 0 评论 -
代数计算
1.求解线性(代数)方程组问题Gauss-Jordan完全选主消元法博客列主元Gauss消去法博客原创 2019-05-01 18:13:09 · 1661 阅读 · 0 评论 -
黑白棋游戏
#include <iostream>#include <cstdio>using namespace std;char e[30][30];int a[30][30];int c[30];int x[30];int y[30];int f(int n,int &sum){ int val[4]={0,1,2}; int pos; su...原创 2019-05-03 21:45:23 · 904 阅读 · 0 评论 -
高精度计算
#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main(){ string str("123456789"); cout<<str<<endl; return 0;}输出:/原创 2019-04-25 17:18:45 · 797 阅读 · 0 评论 -
高精度除以低精度
//调用 //HpDivByShort(str1, p,flag1,flag2);//-----------------------------//高精度除以低精度:num表示被除数,p表示除数,(remainder表示余数),is_div为1表示输出商,is_mod为1表示输出余数const int N=11000;void HpDivByShort(string num,ll p,...原创 2019-07-14 22:18:07 · 882 阅读 · 0 评论 -
2018 焦作 onsite E - Resistors in Parallel(数学或规律+大数)
题目链接:http://codeforces.com/gym/102028/problem/EE. Resistors in Paralleltime limit per test2.0 smemory limit per test1024 MBinputstandard inputoutputstandard outputIn this physics problem, wha...原创 2019-10-08 22:46:39 · 370 阅读 · 0 评论