標籤:Buy TicketsTime Limit: 4000MS Memory Limit: 65536KTotal Submissions: 18361 Accepted: 9120DescriptionRailway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long
標籤:1、解決class not found的方法:如果你用的是homestead虛擬機器,那麼,你要到虛擬機器下執行:composer dump-autoload2、解決Base table or view not found: 1051的方法mysql> drop database homestead;mysql> create database homestead;php artisan
標籤:-- 建立一個測試表create table tp_content( id int not null, title char(32) not null, addtime date not null default ‘2000-01-01‘) engine = myisam default charset = utf8;-- 修改sql語句的結束符delimiter $-- 建立一個預存程序,插入100萬條測試資料CREATE PROCEDURE load_data() begin
標籤:狀態壓縮DP:1、矩陣類型:枚舉當前行的所有狀態狀態,加限定條件。枚舉上一行的所有狀態,加限定條件。......找出遞推的方程,基本方法:枚舉每一行狀態,由上向下一行一行遞推。經典例題: # include <iostream># include <cstring># include <cmath>using namespace std;int map[175][175];int cl[4096];// 所有合法狀態int num[4096];
標籤:Question:Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3,
標籤:Problem DescriptionAlice get a string S. She thinks palindrome string is interesting. Now she wanna know how many three tuple (i,j,k) satisfy 1≤i≤j<k≤length(S) , S[i..j] and S[j+1..k] are all palindrome strings. It‘s easy for her. She