这题做了很久 做好了感觉很简单。。。 现在做题思路更加清晰了 一个要点就是 当楼梯过不去的时候不能是先过去时间加2 必须得回去等一秒 否则queue的时间顺序会被打破 #include<bits/stdc++.h> using namespace std; int sx,sy,ex,ey;int n ...
分类:
其他好文 时间:
2019-01-23 10:38:03
阅读次数:
224
1.数据库连接: Data Source : 一个点默认为本地数据库,其他数据库填写相应ip ; Initial Catelog:是目标数据库名称 我们接收一个json字符串,将其value填入一个实例化的类对象,通过这个类的实例化对象来使用它 OverPoint类: executeQuery和ex ...
分类:
数据库 时间:
2019-01-22 23:05:24
阅读次数:
457
The UN finals are here!, the coaches/ex-coaches team is creating a new exciting contest to select which teams will compete in the Colombian finals. Iv ...
分类:
其他好文 时间:
2019-01-21 21:12:50
阅读次数:
128
1.字符串的常用函数 1.center() 2.startswith() 3.endswith() ... ... 通过 help() 查看某数据类型所提供的方法 >>> help(str) #str是字符串的类型 2.字符串的格式化表达式 1.作用 生成一定格式的字符串 ex: sname = i ...
分类:
编程语言 时间:
2019-01-20 20:55:47
阅读次数:
202
一、进程标识 二、函数fork 1.写时复制,copy-on-write 2.文件共享,父进程等待子进程完成,子进程结束后,它对任一共享描述符的读写操作的文件偏移量已做相应的更新,同时操作时,可以考虑使用文件锁 三、函数vfork 1.不完全复制父进程的地址空间 2.保证子进程先运行,直到其调用ex ...
分类:
系统相关 时间:
2019-01-19 12:15:17
阅读次数:
253
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2019-01-18 21:24:18
阅读次数:
198
这本书上说不支持windows。 所以,我想在windows下用,只能装linux虚拟机,或者docker 选择docker 然后下载DockerToolbox.exe,装上,起不来。反复卸载安装,每次都因为vbox的问题。放弃 推荐使用Docker for Windows Installer.ex ...
1 //八个方向的BFS裸题---AC! 2 //无需存图,注意结构体里未初始化的step值是如何改变的! 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 int n,m,sx,sy,ex,ey,cnt; 10 const ... ...
分类:
其他好文 时间:
2019-01-18 13:33:03
阅读次数:
195
E - Knapsack 2 Time Limit: 2 sec / Memory Limit: 1024 MB Score : 100100 points Problem Statement There are NN items, numbered 1,2,…,N1,2,…,N. For each ...
分类:
其他好文 时间:
2019-01-16 00:14:01
阅读次数:
288
高级语言通常都配置了一套try...except...finally的错误处理机制。 1、我们先看一个try的机制 字典key不存在 'name'什么时候执行finally key不存在,我们就抛出一个keyerror的错误,下标越界,我们就抛出一个indexerror的错误 如果没有错误,就在ex ...
分类:
编程语言 时间:
2019-01-14 22:00:32
阅读次数:
192