#include <iostream>#include <string.h>using namespace std; struct student{ int age; char name[10]; char sex[5]; student *next; }; //链表的增删查改 增; int mai ...
分类:
其他好文 时间:
2020-05-19 12:33:02
阅读次数:
51
``` #include #include #include using namespace std; int n , m , w; int ap , bp , as , bs ; int ans = 0 ; int f[2001][2001] ;// f[i][j] 表示第 i 天后拥有 j 张股... ...
分类:
其他好文 时间:
2020-05-19 12:32:12
阅读次数:
49
Masking lets you modify a specific bit (or bits) using a bit pattern (called the mask) and a logical bitwise operator (AND, OR, or XOR). By changing t ...
分类:
其他好文 时间:
2020-05-19 12:29:32
阅读次数:
62
mysql 索引中的USING BTREE有什么用 创建索引时指定索引类型 https://dev.mysql.com/doc/refman/5.7/en/create index.html ...
分类:
数据库 时间:
2020-05-19 10:54:24
阅读次数:
78
Remove kernel In CentOS8 1. check up using kernel : [root@test ~]# uname -aLinux test 4.18.0-147.8.1.el8_1.x86_64 #1 SMP Thu Apr 9 13:49:54 UTC 2020 x ...
分类:
其他好文 时间:
2020-05-19 01:02:54
阅读次数:
69
题目如下: 思路: 4 4 3 2 1 第一反应是 相邻的交换直到排序顺序为从小到大 其实这就是所谓的冒泡法 代码如下: #include<cstdio> #include<iostream> using namespace std; int main(){ int n; cin>>n; int a ...
分类:
其他好文 时间:
2020-05-19 00:44:14
阅读次数:
75
题目传送门 A. Sequence with Digits an+1=an+minDigit(an)?maxDigit(an),已知a1,k,求ak。 当minDigit(an)=0时,an+1=an,对后续的答案不会产生影响了。 #include <bits/stdc++.h> using nam ...
分类:
其他好文 时间:
2020-05-18 23:02:42
阅读次数:
81
POJ 3259 http://poj.org/problem?id=3259 题意: 农夫 FJ 有 N 块田地【编号 1...n】 (1 include include include using namespace std; const int maxn = 510; const int ma ...
分类:
其他好文 时间:
2020-05-18 22:49:56
阅读次数:
67
"luogu" 因为$C$对答案的贡献只和$\max b_i$有关,所以我们枚举这个值$z$,然后把所有$ z$的$b$全部变成$z$,这里如果$A define LL long long define db double using namespace std; const int N=2e5+1 ...
分类:
其他好文 时间:
2020-05-18 20:29:02
阅读次数:
52
Implementing JavaScript inheritance using and Prior to ES6, implementing a proper inheritance required multiple steps. One of the most commonly used s ...
分类:
其他好文 时间:
2020-05-18 18:17:12
阅读次数:
60