1 #include<stdio.h> 2 #include<stdlib.h> 3 //系数 coefficient,coef 4 //指数 exponent, expon 5 typedef struct polyNode* polynomial; 6 struct polyNode { 7 i ...
分类:
其他好文 时间:
2020-05-08 12:42:21
阅读次数:
70
比赛链接:https://codeforces.com/contest/1345 A. Puzzle Pieces 题意 给定n,m;问用题中所给图片是否能拼成n行m列的大图片 观察可得当n=1或m=1或n=2且m=2时成立 B. Card Constructions 题意 用n张卡牌搭金字塔,每次 ...
分类:
其他好文 时间:
2020-05-07 23:15:21
阅读次数:
106
1. #include <iostream> #include <map> #include <hash_map> // 对该结构体按照xxx排序,在hash_map中存储name和地址 struct Site { Site(const std::string &n, const std::stri ...
分类:
其他好文 时间:
2020-05-07 22:40:06
阅读次数:
82
1. 声明:extern i; 2. 将循环边界用一个变量标志,方便修改,使用const限定符, const int buf_size = 100; 3. const定义的变量默认是局部变量,不能被其他文件访问, 如有需要,extern const int i; 非const 变量默认为extern ...
分类:
编程语言 时间:
2020-05-07 19:22:59
阅读次数:
89
环境 1. jdk 7 2. 4.3.24.RELEASE 原因 如果 RestTemplate 的响应是 String 类型,则会将响应交给 StringHttpMessageConverter 进行转化。 StringHttpMessageConverter 默认的编码是 ISO 8859 1, ...
分类:
编程语言 时间:
2020-05-07 13:55:48
阅读次数:
62
static int bnxt_setup_flower(struct net_device *dev, struct tc_cls_flower_offload *cls_flower) { struct tc_mqprio_qopt *mqprio = type_data; struct bnx ...
分类:
其他好文 时间:
2020-05-07 13:33:24
阅读次数:
77
比赛链接:https://codeforces.com/contest/1345 A - Puzzle Pieces 题意 能否用 3 凸 1 凹的拼图拼成 n x m 的图块。 题解 观察发现只可以拼成单独的一行或一列或两行两列。 代码 #include <bits/stdc++.h> using ...
分类:
其他好文 时间:
2020-05-07 09:31:06
阅读次数:
73
mysql表的查询 前期表准备 create table emp( id int not null unique auto_increment, name varchar(20) not null, sex enum('male','female') not null default 'male', ...
分类:
数据库 时间:
2020-05-06 22:05:58
阅读次数:
86
一、单表查询 前期表准备 create table emp( id int not null unique auto_increment, name varchar(20) not null, sex enum('male','female') not null default 'male', #大 ...
分类:
数据库 时间:
2020-05-06 21:32:40
阅读次数:
72
``` //单点修改 pushup //查询区间内的最大字段和 #include #include #include #include using namespace std; const int N = 500010; int n, m; int w[N]; struct Node { //端点 ... ...
分类:
其他好文 时间:
2020-05-06 20:03:08
阅读次数:
53