这是哪位能人写的啊?(高精度除法)
2024-07-23 15:52:54
发布于:广东
111阅读
0回复
0点赞
高精度A/B Problem题解:(不是本人写的,是转载的)
是这位写的,大家可以去看他
点赞的 | 关注的 | 点赞+关注的 |
---|---|---|
身体健康 | 心想事成 | 心想事成,身体健康,一键三联(Dog) |
废话不多说,上代码
#include<bits/stdc++.h>
using namespace std;
#define akfhlkjdafhahfhlkdahflkdhfhwfruoieorefhhbkgangljnvjfdnvorgnrogorjiuoiffnunawfueinfesfiuehf long long
#define DFNEAFJANFJDNFJDNFKJDFNDAFDJNFDSFNEAFOEJEOIFAJAwmmqwewqmqwmewqmemWQOIWQemwqenwdowqDIIFDFDFDSAF int
#define qouereuwqourewqoruewqrpoewurpoewuroiewurpewqruieworupoiqruewporupoiewrupewrieopurewrewrewrew for
#define iuewruiewieuesmfuehfumeiufhmrnewf4fmrwufincfmeIMHIHIUMMHFUFNCUNEWQNFEWFNEWNFIEWFFUNEFNEFEWNFNE if
#define uriuewruoiewqrrjifjdslfdsfdskjfkdsfdsfhdsjfhdskjfkdsanfjcxvbcxnmxbvmcxznvcxvcvcxbvvcxnbvnmcbvz cin
#define PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOPPPPPPPPPPPPPPPPPPPPPPPPPP i
#define OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOQeuwquouroiewhriuenceifmeshjrmewrhuinhxjdnhfnmxhewfcehmfu cout
#define UEWREWUREOIREWRUDJFHDSJHSFJDSFCNDFDAMFDFADFUDSFHJDAHFHDFDHSHFDSHFDFNXEWIMEWRUEWMIUREROHEWH return
DFNEAFJANFJDNFJDNFKJDFNDAFDJNFDSFNEAFOEJEOIFAJAwmmqwewqmqwmewqmemWQOIWQemwqenwdowqDIIFDFDFDSAF main(){
string iuyauncuiefmhiunhreienhufaiyueyuryryuerieyrierncacunfdcd;
akfhlkjdafhahfhlkdahflkdhfhwfruoieorefhhbkgangljnvjfdnvorgnrogorjiuoiffnunawfueinfesfiuehf eeryeyureyewqiureyriuewqewyryrewryeowyroiuewyroiuewyriuewyriuewyriuedfdhjghjkvnjnvkvnsrewoipewrfjoifjnfoinfoiefoieifejfpsf,eokfjairmjonrifijeomjeohrdjoehrdoiemhrhsnreamhreordnfjdsnkjdnkdsjnldsnjfhtoijsoizjfhdjvnesfhoies=0,wetuioiuytrewqsdfghjjbvcxzxcvbndgfgdhsjksicuytrewvertdyuwikjehrbtvcxrvebsnjuyvtrgfyuwjnwbsgcyujwsnvfgyeuwjsnffgyreiwksngfteywuiksmnh[10000];
uriuewruoiewqrrjifjdslfdsfdskjfkdsfdsfhdsjfhdskjfkdsanfjcxvbcxnmxbvmcxznvcxvcvcxbvvcxnbvnmcbvz >> iuyauncuiefmhiunhreienhufaiyueyuryryuerieyrierncacunfdcd >> eeryeyureyewqiureyriuewqewyryrewryeowyroiuewyroiuewyriuewyriuewyriuedfdhjghjkvnjnvkvnsrewoipewrfjoifjnfoinfoiefoieifejfpsf;
qouereuwqourewqoruewqrpoewurpoewuroiewurpewqruieworupoiqruewporupoiewrupewrieopurewrewrewrew(DFNEAFJANFJDNFJDNFKJDFNDAFDJNFDSFNEAFOEJEOIFAJAwmmqwewqmqwmewqmemWQOIWQemwqenwdowqDIIFDFDFDSAF qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf=0;qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf<iuyauncuiefmhiunhreienhufaiyueyuryryuerieyrierncacunfdcd.size();qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf++){
wetuioiuytrewqsdfghjjbvcxzxcvbndgfgdhsjksicuytrewvertdyuwikjehrbtvcxrvebsnjuyvtrgfyuwjnwbsgcyujwsnvfgyeuwjsnffgyreiwksngfteywuiksmnh[qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf]=iuyauncuiefmhiunhreienhufaiyueyuryryuerieyrierncacunfdcd[qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf]-'0';
}
eokfjairmjonrifijeomjeohrdjoehrdoiemhrhsnreamhreordnfjdsnkjdnkdsjnldsnjfhtoijsoizjfhdjvnesfhoies=0;
string camifcaodsmfoijapmesfiejfciodajfoidsfpaeoikcldsofjcaoioidcmfjdjeajceoimajamivnocndvfiacsdmfovdscsocm="";
qouereuwqourewqoruewqrpoewurpoewuroiewurpewqruieworupoiqruewporupoiewrupewrieopurewrewrewrew(DFNEAFJANFJDNFJDNFKJDFNDAFDJNFDSFNEAFOEJEOIFAJAwmmqwewqmqwmewqmemWQOIWQemwqenwdowqDIIFDFDFDSAF qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf=0;qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf<iuyauncuiefmhiunhreienhufaiyueyuryryuerieyrierncacunfdcd.size();qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf++){
eokfjairmjonrifijeomjeohrdjoehrdoiemhrhsnreamhreordnfjdsnkjdnkdsjnldsnjfhtoijsoizjfhdjvnesfhoies=eokfjairmjonrifijeomjeohrdjoehrdoiemhrhsnreamhreordnfjdsnkjdnkdsjnldsnjfhtoijsoizjfhdjvnesfhoies*10+wetuioiuytrewqsdfghjjbvcxzxcvbndgfgdhsjksicuytrewvertdyuwikjehrbtvcxrvebsnjuyvtrgfyuwjnwbsgcyujwsnvfgyeuwjsnffgyreiwksngfteywuiksmnh[qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf];
camifcaodsmfoijapmesfiejfciodajfoidsfpaeoikcldsofjcaoioidcmfjdjeajceoimajamivnocndvfiacsdmfovdscsocm+=eokfjairmjonrifijeomjeohrdjoehrdoiemhrhsnreamhreordnfjdsnkjdnkdsjnldsnjfhtoijsoizjfhdjvnesfhoies/eeryeyureyewqiureyriuewqewyryrewryeowyroiuewyroiuewyriuewyriuewyriuedfdhjghjkvnjnvkvnsrewoipewrfjoifjnfoinfoiefoieifejfpsf+'0';
eokfjairmjonrifijeomjeohrdjoehrdoiemhrhsnreamhreordnfjdsnkjdnkdsjnldsnjfhtoijsoizjfhdjvnesfhoies%=eeryeyureyewqiureyriuewqewyryrewryeowyroiuewyroiuewyriuewyriuewyriuedfdhjghjkvnjnvkvnsrewoipewrfjoifjnfoinfoiefoieifejfpsf;
}
DFNEAFJANFJDNFJDNFKJDFNDAFDJNFDSFNEAFOEJEOIFAJAwmmqwewqmqwmewqmemWQOIWQemwqenwdowqDIIFDFDFDSAF rewqoeqoiurewqoiurewqrewqureoiuwoiurewqiurewqdbvdscbvbsvjkjhkkjnknjsvkjsbbvjfbvjkjfffjhfnbfjfbfnfnerkjjndhe=0;
qouereuwqourewqoruewqrpoewurpoewuroiewurpewqruieworupoiqruewporupoiewrupewrieopurewrewrewrew(DFNEAFJANFJDNFJDNFKJDFNDAFDJNFDSFNEAFOEJEOIFAJAwmmqwewqmqwmewqmemWQOIWQemwqenwdowqDIIFDFDFDSAF qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf=0;qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf<camifcaodsmfoijapmesfiejfciodajfoidsfpaeoikcldsofjcaoioidcmfjdjeajceoimajamivnocndvfiacsdmfovdscsocm.size();qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf++){
iuewruiewieuesmfuehfumeiufhmrnewf4fmrwufincfmeIMHIHIUMMHFUFNCUNEWQNFEWFNEWNFIEWFFUNEFNEFEWNFNE(camifcaodsmfoijapmesfiejfciodajfoidsfpaeoikcldsofjcaoioidcmfjdjeajceoimajamivnocndvfiacsdmfovdscsocm[qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf]=='0' && rewqoeqoiurewqoiurewqrewqureoiuwoiurewqiurewqdbvdscbvbsvjkjhkkjnknjsvkjsbbvjfbvjkjfffjhfnbfjfbfnfnerkjjndhe==0) continue;
rewqoeqoiurewqoiurewqrewqureoiuwoiurewqiurewqdbvdscbvbsvjkjhkkjnknjsvkjsbbvjfbvjkjfffjhfnbfjfbfnfnerkjjndhe=1;
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOQeuwquouroiewhriuenceifmeshjrmewrhuinhxjdnhfnmxhewfcehmfu << camifcaodsmfoijapmesfiejfciodajfoidsfpaeoikcldsofjcaoioidcmfjdjeajceoimajamivnocndvfiacsdmfovdscsocm[qyuwqetwqietoiuewqtoiuewqrywieuyruewqyryewqrewqpjfhdsskfhdsfkjfdskfdshfdclscfvf];
}
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOQeuwquouroiewhriuenceifmeshjrmewrhuinhxjdnhfnmxhewfcehmfu << endl << eokfjairmjonrifijeomjeohrdjoehrdoiemhrhsnreamhreordnfjdsnkjdnkdsjnldsnjfhtoijsoizjfhdjvnesfhoies;
UEWREWUREOIREWRUDJFHDSJHSFJDSFCNDFDAMFDFADFUDSFHJDAHFHDFDHSHFDSHFDFNXEWIMEWRUEWMIUREROHEWH 0;
}
被惊艳了到了吧?还不快点赞
全部评论 5
#include <iostream> #include <cstring> #define cjdst_is_a_renji std #define xiugaineicun memset #define shuru cin #define shuchu cout #define sanshierzhengxing int #define shiliuzhengxing short #define bazhengxing char #define fanhui return #define ruguo if #define chongfuxunhuan for #define yizhixunhuandao while #define qiudaxiao sizeof #define ling 0 #define yi 1 #define yiqianlingwu 1005 #define shi 10 bazhengxing chao[yiqianlingwu], ji[yiqianlingwu]; sanshierzhengxing da[yiqianlingwu], shuai[yiqianlingwu], tong[yiqianlingwu], beiyongshuzu[yiqianlingwu]; sanshierzhengxing bijiaodaxiao(sanshierzhengxing *a, sanshierzhengxing *b){ ruguo(a[ling] < b[ling]) fanhui -yi; ruguo(a[ling] > b[ling]) fanhui yi; chongfuxunhuan(sanshierzhengxing i = a[ling]; i >= yi; i--){ ruguo(a[i] > b[i]) fanhui yi; ruguo(a[i] < b[i]) fanhui -yi; }fanhui ling; }sanshierzhengxing youduiqihanshu(sanshierzhengxing *a, sanshierzhengxing *b, sanshierzhengxing dst){ chongfuxunhuan(sanshierzhengxing i = yi; i <= a[ling]; i++){ b[i + dst - yi] = a[i]; }b[ling] = a[ling] + dst - yi; } sanshierzhengxing main(){ cjdst_is_a_renji::shuru >> chao >> ji; da[ling] = strlen(chao), shuai[ling] = strlen(ji); chongfuxunhuan(sanshierzhengxing i = ling; i < da[ling]; i++) da[da[ling] - i] = chao[i] - '0'; chongfuxunhuan(sanshierzhengxing i = ling; i < shuai[ling]; i++) shuai[shuai[ling] - i] = ji[i] - '0'; ruguo(bijiaodaxiao(da, shuai) == -yi){ cjdst_is_a_renji::shuchu << ling << cjdst_is_a_renji::endl << chao; fanhui ling; } tong[ling] = da[ling] - shuai[ling] + yi; chongfuxunhuan(sanshierzhengxing i = tong[ling]; i >= yi; i--){ xiugaineicun(beiyongshuzu, ling, qiudaxiao(beiyongshuzu)); youduiqihanshu(shuai, beiyongshuzu, i); yizhixunhuandao(bijiaodaxiao(da, beiyongshuzu) >= ling){ tong[i]++; chongfuxunhuan(sanshierzhengxing j = yi; j <= da[ling]; j++){ ruguo(da[j] < beiyongshuzu[j]){ da[j + yi]--; da[j] += shi; }da[j] -= beiyongshuzu[j]; }
2024-08-13 来自 湖南
0yizhixunhuandao(da[da[ling]] == ling && da[ling] > yi) da[ling]--; } }yizhixunhuandao(tong[ling] > yi && tong[tong[ling]] == ling) tong[ling]--; chongfuxunhuan(sanshierzhengxing i = tong[ling]; i > ling; i--) cjdst_is_a_renji::shuchu << tong[i]; cjdst_is_a_renji::cout << cjdst_is_a_renji::endl; chongfuxunhuan(sanshierzhengxing i = da[ling]; i > ling; i--) cjdst_is_a_renji::shuchu << da[i]; fanhui ling; }
宣传一下我的
2024-08-13 来自 湖南
0这位更是中文翻译大佬
2024-08-15 来自 广东
0
python秒了
2024-08-13 来自 广东
0贝贝,经检测发现你用的是python,请立即洗眼并忘记这个视频,否则将对你上诉[来自C++ProMax1TB,搭载了6.7英寸OLED全面屏,分辨率2796*1290像素,支持ProMotion自适应刷新率技术,最高可达120Hz刷新率,具有全天候显示功能、HDR显示、原彩显示以及广色域(P3)等特性,具备2000000:1的对比度和防油渍防指纹涂层宽度76.7毫米,高度159.9毫米,厚度8.25毫米,重量221克,超瓷晶面板与亚光质感玻璃背板相结合采用了全新的A17 Pro芯片,4422mAh电池,支持27W有线和15W无线快充,摄像头包含后置4800万像素主摄、1200万像素超广角摄像头、一个1200万像素的2倍长焦镜头和一个新的1200万像素5倍长焦镜头]
2024-08-13 来自 湖南
0e.......不必这么炫耀
2024-08-13 来自 北京
0我根本没做,我这是在想,自从有了python,高精题不就全废了
2024-08-14 来自 广东
0
浏览比我多蹭赞比我多
?2024-07-24 来自 浙江
0不理解
2024-07-24 来自 浙江
06
2024-07-26 来自 广东
0
顶
2024-07-24 来自 广东
0呵呵
2024-07-24 来自 广东
0
6,我去看看
2024-07-24 来自 广东
0OK
2024-07-24 来自 广东
0
有帮助,赞一个