# coding=utf-8 # This script is uesd to modify Agent IP at the first time of machine started. import requests import json import time import os import ...
分类:
其他好文 时间:
2020-07-29 17:54:47
阅读次数:
80
Descriprion 给出$n\times m$ 的方格,有些格子不能铺线,其它格子必须铺,形成一个闭合回路。问有多少种铺法? Solution 使用括号表示法记录状态,记1为 '(' ,2为 ')' ,0为无插头,分8种情况讨论: 1:当前格子有障碍,此时必须下插头和右插头为0,转移后状态不变 ...
分类:
其他好文 时间:
2020-07-29 17:30:42
阅读次数:
68
--每次删多少 DECLARE @BatchSize INT = 100 WHILE 1 = 1 BEGIN DELETE TOP (@BatchSize) FROM tb WHERE id>30 IF @@ROWCOUNT < @BatchSize BREAK END ...
分类:
数据库 时间:
2020-07-29 15:33:08
阅读次数:
69
AcWing 829. 模拟队列 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int q[N],hh,tt; void init(){ hh=0; tt=-1; } void add(int x){ q[++tt ...
创建节点 CREATE (<node-name>:<label-name>) node-name:要创建的节点名称,不能使用它来访问节点详细信息,可不写。 label-name:节点标签名称,使用此标签名称来访问节点详细信息。 查询 查询某label的节点 MATCH (dept: Dept) RE ...
分类:
其他好文 时间:
2020-07-29 12:42:30
阅读次数:
73
安装: 直接在命令行pip3 install py2neo 官网下载(解压后放到python下的scripts中,在py2neo目录下cmd,输入python setup.py install 链接 auth=(用户名,密码) from py2neo import Graph,Node,Relati ...
分类:
数据库 时间:
2020-07-29 12:41:46
阅读次数:
96
##输出1到n以内所有的二进制回文数 #include <stdio.h> #define SIZE 50 typedef enum bool Bool; enum bool { false, true }; int main() { int n, i, j; Bool flag = false; ...
分类:
其他好文 时间:
2020-07-29 10:02:00
阅读次数:
84
一、字符串相关 1、String String声明 为final,不可被继承 实现Serializable接口,可序列化 String内部定义final char[] value 用于存储字符串数据。不可变 通过字面量(String s = "abc";)的方式(区别于new方式)给一个字符串赋值, ...
分类:
编程语言 时间:
2020-07-29 10:00:17
阅读次数:
57
如果不需要确定当前遍历到了哪一层,BFS模板如下。 while queue 不空: cur = queue.pop() for 节点 in cur的所有相邻节点: if 该节点有效且未访问过: queue.push(该节点) 如果要确定当前遍历到了哪一层,BFS模板如下。 这里增加了level表示当 ...
分类:
其他好文 时间:
2020-07-28 22:38:05
阅读次数:
77
题面 #include <bits/stdc++.h> using namespace std; template<typename temp> void read(temp &x){ x = 0; temp f = 1; char ch; while(!isdigit(ch = getchar() ...
分类:
其他好文 时间:
2020-07-28 22:35:46
阅读次数:
61