#include<iostream> #include<cstring> using namespace std; int len; void getNext(char *s, int *nex) { nex[0] = -1; int i = 0, j = -1; while(i < len) { ...
分类:
其他好文 时间:
2020-12-01 12:21:17
阅读次数:
7
2020年11月26日11:36:59 powershell在vscode cmake编译,注意 drogon_ctl -v 查看你的库是否连接成功 Libraries: postgresql: no (batch mode: no) mariadb: yes sqlite3: yes openss ...
分类:
数据库 时间:
2020-12-01 12:06:44
阅读次数:
8
实验四 实验任务一、 // 一元二次方程求解(函数实现方式) // 重复执行, 直到按下Ctrl+Z结束 #include <math.h> #include <stdio.h> // 函数声明 void solve(double a, double b, double c); // 主函数 int ...
分类:
其他好文 时间:
2020-11-30 16:10:43
阅读次数:
8
在紫书上看到的,挺有意思。 一看到位运算我就会躲,因为我整不明白。 代码 c++ include "iostream" include "cstdio" using namespace std; void subset(int n, int s) { printf("{"); for (int i ...
分类:
其他好文 时间:
2020-11-30 16:03:39
阅读次数:
8
1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() { 4 int t; 5 cin >> t; 6 while (t--) { 7 int a, b; 8 string a_line, b_line; 9 cin >> a ...
分类:
其他好文 时间:
2020-11-30 15:20:06
阅读次数:
5
一、分支管理分支合并分支:在我们每次的提交,Git都把它们串成一条时间线,这条时间线就是一个分支。截止到目前,只有一条时间线,在Git里,这个分支叫主分支,即master分支。HEAD指针严格来说不是指向提交,而是指向master,master才是指向提交的,所以,HEAD指向的就是当前分支。一开始的时候,master分支是一条线,Git用master指向最新的提交,再用HEAD指向master,
分类:
其他好文 时间:
2020-11-27 11:22:59
阅读次数:
7
#include<queue> #include<vector> #include<unordered_map> using namespace std; struct Node { int x; int y; double cost; int parent; Node(int ix, int iy ...
分类:
编程语言 时间:
2020-11-27 11:07:17
阅读次数:
8
https://www.luogu.com.cn/problem/P3366 1 #define IO std::ios::sync_with_stdio(0) 2 #include <bits/stdc++.h> 3 #define pb push_back 4 using namespace s ...
分类:
其他好文 时间:
2020-11-26 15:24:23
阅读次数:
48
Atcoder Beginner Contest 184 A-Determinant Solution: 输出$ad-bc$ #include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> ...
分类:
其他好文 时间:
2020-11-26 15:23:49
阅读次数:
14
#include<stdio.h> int main(void){ int i,j,sum,allsum; for(j=1;j<=50;j++) {sum=0; for(i=1;i<=j;i++) sum+=i; allsum+=sum; } printf("%d",allsum); return ...
分类:
其他好文 时间:
2020-11-26 15:02:26
阅读次数:
5