A. Trip For Meal 给 n a b c,分别表示一个数 n 和一个三角形的三边 你被要求从这个三角形的 a 和 b 的交点出发,在这个三角形上以最小距离走 n-1 步 那么这个,,,, 如果 a 或 b 是最短边的话,我们在单条边上抽搐 n-1 次即可 否则 c 就是最短边了 我们通过 ...
分类:
其他好文 时间:
2017-10-16 23:23:36
阅读次数:
181
一 css属性 二 文档操作 三 动画 四 事件处理 一 css属性操作 1:css() 4种情况: (1)获得单个属性值 (2)设置属性值 (3)获得多个属性值 (3)设置多个属性值 2 位置操作: .offset --获取相对位置 --比较的对象是html也就是目前的窗口 .position - ...
分类:
Web程序 时间:
2017-10-16 22:06:51
阅读次数:
270
[poj P2411] Mondriaan's Dream Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 18023 Accepted: 10327 Description Squares and rectangles fasc ...
分类:
其他好文 时间:
2017-10-16 22:03:45
阅读次数:
153
题目链接 T1 排序后二分 #include <algorithm> #include <cstdio> #include <cctype> #define N 200100 using namespace std; inline void read(int &x) { bool f=0;regis ...
分类:
其他好文 时间:
2017-10-16 21:39:59
阅读次数:
168
题目描述 Byteazar the Dragon has NN piggy banks. Each piggy bank can either be opened with its corresponding key or smashed. Byteazar has put the keys in ...
分类:
其他好文 时间:
2017-10-15 22:38:07
阅读次数:
245
一、if...else语句 if 条件成立: 执行条件成立后的代码 else: 执行条件不成立的代码 注:注意有冒号,python会强制缩进!一般语句都必须顶格写,缩进是缩进一个tab键,等于4个空格 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- ...
分类:
其他好文 时间:
2017-10-15 22:37:03
阅读次数:
242
1 #include<iostream> 2 #include<cstring> 3 #include<string> 4 #include<cstdio> 5 #include<vector> 6 #include<cmath> 7 #include<stack> 8 #include<set> ...
分类:
其他好文 时间:
2017-10-15 21:12:25
阅读次数:
203
Description The new founded Balkan Investment Group Bank (BIG-Bank) opened a new office in Bucharest, equipped with a modern computing environment pro ...
分类:
其他好文 时间:
2017-10-15 19:31:13
阅读次数:
236
题目背景 一年一度的“跳石头”比赛又要开始了! 题目描述 这项比赛将在一条笔直的河道中进行,河道中分布着一些巨大岩石。组委会已经选择好了两块岩石作为比赛起点和终点。在起点和终点之间,有 N 块岩石(不含起点和终 点的岩石)。在比赛过程中,选手们将从起点出发,每一步跳向相邻的岩石,直至到达 终点。 为 ...
分类:
其他好文 时间:
2017-10-15 00:40:33
阅读次数:
132
观察者模式:(对象间的一种一对多依赖关系,使得每当一个对象改变状态,则所有依赖于它的对象都会得到通知并被自动更新) 观察者模式又称为发布/订阅(Publish/Subscribe)模式,因此我们可以用报纸期刊的订阅来形象的说明: 报社方负责出版报纸; 用户订阅了该报社的报纸,那么只要报社发布了新报纸 ...
分类:
其他好文 时间:
2017-10-14 21:14:24
阅读次数:
234