自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

more time

懂得越多 做得越快 不加班

  • 博客(11)
  • 收藏
  • 关注

原创 HDU 5882 Balanced Game [欧拉图]

Description输入N 表示一个游戏有N种出招 问是不是公平的Algorithm就是一个图,每个顶点都和别的顶点相连,问能不能一笔画 显然 奇数个点,每个点都连偶数条边,可以 偶数不行Code#include <iostream>#include <cstdio>using namespace std;int main() { int t; scanf("%d", &t

2016-09-17 20:20:48 453

原创 Github Pages

Github Pages https://pages.github.com/ 提供一个挂载静态页面的站点 先说下基础玩法首先需要一个Github账号 然后新建一个名为 username.github.io的Repository 比如我的github账号是 yyecust 就新建一个 yyecust.github.io仓库然后把这个仓库clone下来 加一个index.html

2016-09-15 20:45:57 420

原创 POJ 2932 Coneology

http://poj.org/problem?id=2932 挑战程序设计竞赛P258#include <vector>#include <cstdio>#include <utility> //pair#include <iostream>#include <algorithm>#include <set>#define MyPair pair<double, int>using

2016-09-15 13:00:01 292

原创 POJ 1442 Black Box [Treap]

#include <iostream>#include <cstdlib>#include <cstdio>using namespace std;struct Node { Node *ch[2]; int r; int v; int s; Node(int v) : v(v) {

2016-09-12 23:24:49 387

原创 CodeBlocks Code Template

在CodeBlocks中 Setting->Editor->Abbreviations 左侧可以编辑代码目标 编辑好输入缩写然后按Ctrl + J生成 或者直接按Ctrl + J选择 可用用管道符 | 来定位光标 只能有一个 第二个会被识别为 | 下面附上使用的代码模板 tp 新建代码阶段使用的模板,加入函数p用以打印数组和变量 使用了函数模板和函数重载技术#include <cs

2016-09-09 11:31:54 546

原创 JavaScript Date

Date用来处理日期 var a = new Date(2016, 10, 12); 可构建一个Date对象,注意是月份是从0开始 可以console.log()来看日期是否正确 var now = Date.now(); 可以返回当前日期 不过是Unix时间戳,精确到毫秒 不过JavaScript貌似没有Duration的方法 需要自己写https://developer.mozi

2016-09-07 20:07:46 261

原创 electron

electron 是用Web技术,做桌面APP的工具 不用浏览器了,直接原生界面 http://electron.atom.io/试用# Clone the Quick Start repository$ git clone https://github.com/electron/electron-quick-start# Go into the repository$ cd electr

2016-09-05 21:41:51 391

原创 reveal.js

reveal.js 是拿Web技术来做PPT的工具 http://lab.hakim.se/reveal-js/#/ 以后要讲PPT,都拿这个了 持续更新

2016-09-05 21:35:29 596

原创 md-checkbox

md-checkbox可以实现一个复选框<md-checkbox aria-label="Checkbox"></md-checkbox>https://material.angularjs.org/latest/demo/checkbox

2016-09-03 20:58:59 1526

原创 CSS fixed

在SPA中经常需要固定底部和顶部 参考 http://bradfrost.com/blog/mobile/fixed-position/ 可以得到写法固定顶部 .header { position: fixed; top: 0; left: 0; width: 100%; }固定底部 .footer { position: fixed

2016-09-03 09:06:59 487

原创 md-dialog

md-dialog 会弹出一个对话框 相当于alter 虽然说现代web中尽量少用alter,不过由于md-dialog设计非常漂亮,偶尔用用也无妨 下面是最基础的用法 和Demo中不大一样首先建立一个目标文件 dialog.html<md-dialog aria-label=""> <h2>**</h2> <h4>**</h4> <md-divider>

2016-09-02 22:04:16 3549

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除