```cpp #include #include #include #include using namespace std; typedef long long LL; const int N = 1e5; int n , lim , x[N + 5] , y[N + 5] , z[N + 5] ... ...
分类:
其他好文 时间:
2020-02-20 20:30:50
阅读次数:
80
题意:http://acm.hdu.edu.cn/showproblem.php?pid=4149 已知九个数:x1 xor m,x2 xor m......x8 xor m,(x1+x2+....+x8) xor m;求出m 思路:https://blog.csdn.net/AC_0_summer ...
分类:
其他好文 时间:
2020-02-18 20:34:48
阅读次数:
88
一、遍历整个列表 1-1.假设有一个魔术师名单,需要将其中每个魔术师的名字都打印出来。 # 用for循环来打印魔术师名单中的名字 magicians=['alice','david','carolina'] for magician in magicians: #这里面的magician和magic ...
分类:
编程语言 时间:
2020-02-18 17:59:58
阅读次数:
96
使用的模块是eyeD3 一、eyeD3的安装 1、安装msgpack,不安装会报错distributed 1.21.8 requires msgpack, which is not installed pip install msgpack 2、安装magic,不安装的话,在import eyed3 ...
分类:
编程语言 时间:
2020-02-15 18:51:49
阅读次数:
90
Java常量池理解与总结 一.相关概念 1、什么是常量 用final修饰的成员变量表示常量,值一旦给定就无法改变! final修饰的变量有三种:静态变量、实例变量和局部变量,分别表示三种类型的常量。 2、Class文件中的常量池 在Class文件结构中,最头的4个字节用于存储魔数Magic Numb ...
分类:
编程语言 时间:
2020-02-12 16:39:45
阅读次数:
81
这道题做了一个多小时,又调了一个多小时,提交了好几次,终于ac,可见刚刚入坑一个月的自己代码水平之低下。 主要问题有两个,一个是把V和H搞反,半天也没看出来问题,另一个是输出的格式问题,这也导致我wa了好几次。 下面是AC的码 #include<cstdio> //#define LOCAL #in ...
分类:
其他好文 时间:
2020-02-11 12:00:00
阅读次数:
55
1 def tensor_demo(): 2 """ 3 张量的演示 4 :return: 5 """ 6 tensor1 = tf.constant(4.0) 7 tensor2 = tf.constant([1, 2, 3, 4]) 8 linear_squares = tf.constant( ...
分类:
其他好文 时间:
2020-02-10 22:13:32
阅读次数:
58
题目 题目链接:https://gmoj.net/senior/ main/show/4018 一个环上有标号为$1$到$2n$的顶点,每个顶点连接一条无向边。要求选择$3$条不重复的边在顶点处建熊洞(共$6$个),且每条边的两个顶点的距离相同,询问其方案数。 距离定义为在环上从一个顶点到另一个顶点 ...
分类:
其他好文 时间:
2020-02-10 17:50:28
阅读次数:
69
Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other o ...
分类:
其他好文 时间:
2020-02-08 22:02:58
阅读次数:
86
本文介绍基于Spring Boot和JDK8编写一个AOP,结合自定义注解实现通用的接口参数校验。 缘由 目前参数校验常用的方法是在实体类上添加注解,但对于不同的方法,所应用的校验规则也是不一样的,例如有一个AccountVO实体: publicclassAccountVO{privateStrin ...
分类:
编程语言 时间:
2020-02-07 10:23:59
阅读次数:
92