• 2024-11-19高精度
    洛谷P1601A+BProblem(高精)输入格式分两行输入。a,b<=10^500#include<iostream>usingnamespacestd;#include<string>constintN=501;intnum1[N],num2[N],res[N];intp,q;intmain(){strings1,s2;cin>>s1>>s2;int
  • 2024-07-12uniform_filter1d之nearest模式基于JAVA编程实现
    1privatestaticDouble[]uniform_filter1d_double_fast(Double[]input,intsize){2Double[]output=newDouble[input.length];3//https://github.com/scipy/scipy4//‘nearest’(aaaa|abcd|dddd)5bool
  • 2024-06-11python 圖片拼接demo
    fromPILimportImagedefcomb(png1,png2,png3,png4,png5,style='horizontal'):img1,img2,img3,img4,img5=Image.open(png1),Image.open(png2),Image.open(png3),Image.open(png4),Image.open(png5)#统一图片尺寸,可以自定义设置(宽,高)img1=img1.r
  • 2023-04-23面试题 02
    力扣刷题面试题02.07.链表相交--day4题目分析这道题相对简单,注意找到指针相等的节点。先要预处理这两个链表,使其长度一样解法ListNode*getIntersectionNode(ListNode*headA,ListNode*headB){intsize1=0,size2=0;ListNode*temp=headA;while
  • 2023-03-11倍数问题(同余定理,对余数的进一步理解)
    题目描述众所周知,小葱同学擅长计算,尤其擅长计算一个数是否是另外一个数的倍数。但小葱只擅长两个数的情况,当有很多个数之后就会比较苦恼。现在小葱给了你n个数,希望你从这
  • 2022-11-09HDU 1403 Longest Common Substring
    ProblemDescriptionGiventwostrings,youhavetotellthelengthoftheLongestCommonSubstringofthem.Forexample:str1=bananastr2=ciana
  • 2022-10-17图像拼接
    importosfromPILimportImagedefimage_Splicing(img_1,img_2,img_3,flag='x'):img1=Image.open(img_1)img2=Image.open(img_2)img3=Image.