myself_sql = 'select room_id,source_id user_id,min(cast(at as datetime)) joinroom,max(cast(at as datetime)) leaveroom ' \ 'from `event_history` where ...
分类:
数据库 时间:
2018-12-31 21:58:14
阅读次数:
474
题目 题目描述 我们憨厚的USACO主人公农夫约翰(Farmer John)以无法想象的运气,在他生日那天收到了一份特别的礼物:一张“幸运爱尔兰”(一种彩票)。结果这张彩票让他获得了这次比赛唯一的奖品——坐落于爱尔兰郊外的一座梦幻般的城堡! 喜欢吹嘘的农夫约翰立刻回到有着吹嘘传统的威斯康辛老家开始吹 ...
分类:
其他好文 时间:
2018-12-29 23:32:10
阅读次数:
237
举个栗子:比如你结婚,婚庆公司帮你代理一些事情(布置婚房,准备午餐等),虽然婚前公司做的,但是是为你而做的静态代理的设计模式的三要素:1.真实角色2.代理角色:代理角色需要具有真实角色的引用,这样才能实现对真实角色的代理3.真实角色和代理角色要实现共同的接口看个样例:Staticproxy.java... ...
分类:
其他好文 时间:
2018-12-24 18:13:24
阅读次数:
117
一直想写这个博客好久了,一直没时间,今天抽空写一下。首先这个功能如下图所示:用到的库主要是:itchat,os,pinyin,shutil本篇博客会将所有的功能实现都描述出来。1 首先是微信网页端的登陆:1.1 itchat.auto_login()此处不建议采用热重装的方式,即:itchat.au... ...
分类:
微信 时间:
2018-12-11 20:23:39
阅读次数:
310
A Plug for UNIX 题目链接:https://vjudge.net/problem/POJ-1087 Description: You are in charge of setting up the press room for the inaugural meeting of the ...
分类:
其他好文 时间:
2018-12-07 22:34:28
阅读次数:
183
Given a robot cleaner in a room modeled as a grid. Each cell in the grid can be empty or blocked. The robot cleaner with 4 given APIs can move forward ...
分类:
其他好文 时间:
2018-12-07 11:54:09
阅读次数:
147
A:签到。room里有一个用for写的,hack了一发1e8 1,结果用了大概600+ms跑过去了。惨绝人寰。 #include<iostream> #include<cstdio> #include<cmath> #include<cstdlib> #include<cstring> #inclu ...
分类:
其他好文 时间:
2018-11-24 22:21:23
阅读次数:
220
用set来做,seat() O(n),leave() O(logn) 注意一些边界情况和下标即可,最容易遗漏的就是最左边和最右边的位置。 ...
分类:
其他好文 时间:
2018-11-20 14:58:47
阅读次数:
410
1 "GB", 5 "stateOrProvinceName" => "Somerset", 6 "localityName" => "Glastonbury", 7 "organizationName" => "The Brain Room Limited", 8 "organizationalU... ...
分类:
Web程序 时间:
2018-11-15 18:30:37
阅读次数:
198
In this lesson you will learn to describe what you have. STARTER Do you have a ...? # 你有...吗? car brother/sister job hobby favorite song Tell your tut ...
分类:
其他好文 时间:
2018-11-13 00:11:19
阅读次数:
174