// colors @colors: darkslateblue mediumorchid seagreen steelblue; // loop definition .backgrounds(@list, @i: 1) when (@i <= length(@list)) { // extrac ...
分类:
其他好文 时间:
2020-01-31 20:36:45
阅读次数:
68
第二十六个知识点:描述NAF标量乘法算法 NAF标量乘法算法是标量乘法算法的一种增强,该算法使用了非邻接形式(Non Adjacent Form)表达,减少了算法的期望运行时间。下面是具体细节: 让$k$是一个正整数,$P$是一个在域$F_q$上椭圆曲线$E$上的点。这个计算乘法操作$Q = k P ...
分类:
编程语言 时间:
2020-01-31 16:12:23
阅读次数:
239
因为快要WC了所以学一下多项式全家桶,不过国赛大概率是不会考这么难的 因为比初步难所以叫多项式中步 然而好像并不会有多项式高步 基础概念与前置知识 基础概念 只是介绍一下符号和概念 假设$f(x)$是一个多项式 $[x^i]f(x)$表示$f(x)$的第i项(也就是$x$的系数为$i$的那一项) $ ...
分类:
其他好文 时间:
2020-01-31 16:11:34
阅读次数:
95
抽象方法: 抽象方法表示基类的一个方法,没有实现,所以基类不能实例化,子类实现了该抽象方法才能被实例化。 Python的abc提供了@abstractmethod装饰器实现抽象方法,下面以Python3的abc模块举例。 @abstractmethod: 见下图的代码,基类Foo的fun方法被@ab ...
分类:
编程语言 时间:
2020-01-31 12:45:29
阅读次数:
99
1、题目 12. Integer to Roman Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 50 ...
分类:
其他好文 时间:
2020-01-30 22:48:37
阅读次数:
57
大二学生,python小白,边学爬虫边学习python基础 使用教材:《python3网络爬虫开发实战》——崔庆才 首先贴出代码: import requests from requests.exceptions import RequestException import re import js ...
分类:
其他好文 时间:
2020-01-30 21:09:32
阅读次数:
172
为了mysql安装中的各种问题,浪费了大把时间,因为2019.4版本自带的mysql会报Can 't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock '(2) ";的问题,我把它卸了重装。 有人在/e ...
分类:
数据库 时间:
2020-01-30 21:05:34
阅读次数:
143
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" ><map ...
分类:
移动开发 时间:
2020-01-30 20:51:17
阅读次数:
87
Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+ ...
分类:
其他好文 时间:
2020-01-30 18:59:25
阅读次数:
58
弄了6个小时,各种出错,伪静态规则出错1次, def逻辑思维出错1次。哈哈 # 实现加减乘除及拓号优先级解析 # 用户输入 1 - 2 * ( (60-30 +(-40/5) * (9-2*5/3 + 7 /3*99/4*2998 +10 * 568/14 )) - (-4*3)/ (16-3*2) ...
分类:
编程语言 时间:
2020-01-30 17:30:36
阅读次数:
74