classSolution:defbag(self, M, N, space, value):dp =[[0]*(N +1)for _ inrange(M +1)]for i inrange(1, M +1):# first i things consideredfor j inrange(1, N +1):# bag has N spaceif j >= space[i -1]:dp[i][j]=max(dp[i -1][j], dp[i -1][j - space[i -1]]+ value[i -1])else:dp[i][j]=max(dp[i][j -1], dp[i -1][j])return dp[M][N]M, N =[int(x)for x ininput().split()]
space =[int(x)for x ininput().split()]
value =[int(x)for x ininput().split()]
solution = Solution()print(solution.bag(M, N, space, value))
代码:
data_files {}
if args.train_data_dir is not None:data_files["train"] os.path.join(args.train_data_dir, "**")dataset load_dataset("imagefolder",data_filesdata_files,cache_dirargs.cache_dir,)
数据࿱…
客户端安全开发基础-PC篇 written by noxke 项目源码下载
https://download.csdn.net/download/Runnymmede/90079718
1.程序分析
使用ida打开crackme.exe,进入到程序的主逻辑函数,注意到有大量的xmm寄存器,但是不含call指令,先…