全部评论 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 来自 湖南

    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 来自 湖南

      0
    • e.......不必这么炫耀

      2024-08-13 来自 北京

      0
    • 我根本没做,我这是在想,自从有了python,高精题不就全废了

      2024-08-14 来自 广东

      0
  • 浏览比我多蹭赞比我多

    2024-07-24 来自 浙江

    0
  • 2024-07-24 来自 广东

    0
  • 6,我去看看

    2024-07-24 来自 广东

    0
首页