- 博客(15)
- 收藏
- 关注
原创 使用gevent实现高并发爬虫
gevent是一个基于协程的Python网络库,它使用greenlet在libev或libuv事件循环之上提供高级同步API。简单来说,可以理解成一个协程框架,让我们快速开发出协程代码。
2024-05-29 16:14:41 1257 2
原创 CodeForces 950B Intercepted Message
Problem DescriptionHacker Zhorik wants to decipher two secret messages he intercepted yesterday. Yeah message is a sequence of encrypted blocks, each of them consists of several bytes of information...
2018-04-20 22:17:13 482
原创 CodeForces 950A Left-handers, Right-handers and Ambidexters
Problem DescriptionYou are at a water bowling training. There are l people who play with their left hand, r people, who play with their right hand, and a ambidexters, who can play with left or right...
2018-04-20 22:06:25 202
原创 FZU 2140 Forever 0.5
Problem DescriptionGiven an integer N, your task is to judge whether there exist N points in the plane such that satisfy the following conditions:The distance between any two points is no greater...
2018-04-17 10:46:51 205
原创 FZU 2148 Moon Game
Problem DescriptionFat brother and Maze are playing a kind of special (hentai) game in the clearly blue sky which we can just consider as a kind of two-dimensional plane. Then Fat brother starts to ...
2018-04-16 23:37:30 257
原创 ZOJ - 3869 Ace of Aces
Problem DescriptionThere is a mysterious organization called Time-Space Administrative Bureau (TSAB) in the deep universe that we humans have not discovered yet. This year, the TSAB decided to elect...
2018-04-15 22:29:58 212
原创 ZOJ - 3875 Lunch Time
Problem DescriptionThe 999th Zhejiang Provincial Collegiate Programming Contest will be held in Marjar University. The canteen of Marjar University is making preparations for this grand competition....
2018-04-15 22:28:16 297
原创 ZOJ - 3876 May Day Holiday
May Day HolidayProblem DescriptionAs a university advocating self-learning and work-rest balance, Marjar University has so many days of rest, including holidays and weekends. Each weekend, which c...
2018-04-15 22:26:12 244
原创 ZOJ - 3878 Convert QWERTY to Dvorak
Convert QWERTY to DvorakProblem DescriptionEdward, a poor copy typist, is a user of the Dvorak Layout. But now he has only a QWERTY Keyboard with a broken Caps Lock key, so Edward never presses th...
2018-04-15 22:21:59 209
原创 ZOJ - 3880 Demacia of the Ancients
Demacia of the AncientsProblem DescriptionThere is a popular multiplayer online battle arena game called Demacia of the Ancients. There are lots of professional teams playing this game. A team w...
2018-04-15 22:18:53 204
原创 FZU 2151 OOXX Game
OOXX GameProblem DescriptionFat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, there are N*M coins in this board with two sym...
2018-04-15 22:15:44 14437
原创 FZU 2147 A-B Game
A-B GameProblem DescriptionFat brother and Maze are playing a kind of special (hentai) game by two integers A and B. First Fat brother write an integer A on a white paper and then Maze start to ...
2018-04-15 22:12:40 178
原创 FZU 2146 Easy Game
Problem 2146 Easy GameProblem DescriptionFat brother and Maze are playing a kind of special (hentai) game on a string S. Now they would like to count the length of this string. But as both Fat b...
2018-04-15 22:09:17 165
原创 JDBC连接MySQL教程(数据库内容查询)
使用JDBC连接数据库需要四步:1.加载驱动程序。2.连接数据库。3.访问数据库。4.执行查询。准备工作需要在自己电脑上安装MySQL,下载MySQL对应的JAR包并导入。PS.本文IDE为idea代码及详解import java.sql.*;public class JDBC { static final String JDBC_DRIVER = "com.mysql.jdbc.Drive
2017-11-13 18:59:44 481
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人