摘要: 分析: 读题可知无论怎么改变数组,最后的和都不会边,同时因为n较小,因此可以枚举最后剩下的数组长度来解决。关于数字合并,因为枚举长度则可以知道最后的值,从左到右合并,如果出现合并的数字大于那后的值则不符合题意,如果出现一组合并的值能全部都等于最后的值这为答案,输出合并数据即可。 #include < 阅读全文
posted @ 2020-12-16 20:35 yin101 阅读(309) 评论(0) 推荐(0)
摘要: 1.分析url 通过request获取页面 通过正则表达式获取类型列表 成功获取分类后,开始获取单独一个分类下的信息 对比后可以看出type_name为分类,更改此项即可进入不同类型的网站 接下来获取不同分类下的电影信息 通过操作可以看出电影显示方式是通过下拉窗口然后发送请求更新内容 通过对比url 阅读全文
posted @ 2020-12-16 19:38 yin101 阅读(552) 评论(0) 推荐(0)
摘要: info] [0.010] Elaborating design...[error] (run-main-0) chisel3.internal.ChiselException: Exception thrown when elaborating ChiselGeneratorAnnotation[ 阅读全文
posted @ 2020-11-10 13:29 yin101 阅读(395) 评论(0) 推荐(0)
摘要: 算术左移和逻辑左移: UInt:data1 向左移UInt:data2位,低位补0 结果为UInt类型 :(data1<<data2) 算术右移: UInt:data1向右移UInt:data2位,高位补1 结果为UInt类型 :((data1.asSInt>>data2).asUInt) 逻辑右移 阅读全文
posted @ 2020-11-08 20:38 yin101 阅读(511) 评论(0) 推荐(0)
摘要: [error] (run-main-0) treadle.executable.TreadleException: loading memory _T_1[5] <= : error: Zero length BigInteger[error] treadle.executable.TreadleE 阅读全文
posted @ 2020-11-07 14:46 yin101 阅读(457) 评论(0) 推荐(0)
摘要: 函数定义: 1 2 3 def f(x:Int , y:Int) :Int ={ ...... } f为函数名 x,y为传入参数,后面是类型定义,3处Int是返回的值的类型定义。 分号判断: scala可以自动推断,一行只有一条完整语句,那么分号可写可不写。如果有多行语句,则必须用分号隔开。 三种情 阅读全文
posted @ 2020-11-05 22:32 yin101 阅读(130) 评论(0) 推荐(0)
摘要: 基本类型: Byte 8bit有符号整数,补码表示 Short 16bit有符号数,补码表示 Int 32bit有符号数,补码表示 Long 64bit有符号数,补码表示 Char 16bit字符,无符号数,unicode编码 String 字符串 Float 32bit单精度浮点数 Double 阅读全文
posted @ 2020-11-05 22:08 yin101 阅读(139) 评论(0) 推荐(0)
摘要: We call two numbers xx and yy similar if they have the same parity (the same remainder when divided by 22), or if |x−y|=1|x−y|=1. For example, in each 阅读全文
posted @ 2020-05-26 10:16 yin101 阅读(342) 评论(0) 推荐(0)
摘要: Polycarp wants to buy exactly nn shovels. The shop sells packages with shovels. The store has kk types of packages: the package of the ii-th type cons 阅读全文
posted @ 2020-05-26 10:14 yin101 阅读(332) 评论(0) 推荐(0)
摘要: import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms import tor 阅读全文
posted @ 2020-05-19 17:40 yin101 阅读(207) 评论(0) 推荐(0)