Skip to content

Instantly share code, notes, and snippets.

Zheng Luo htfy96

Block or report user

Report or block htfy96

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@htfy96
htfy96 / my acm template
Last active Aug 29, 2015
my acm template
View my acm template
/* **********************************
* 精简版头文件 修改自岛娘的头文件
* By lz96@foxmail.com
* 复制到你的代码头部即可使用
* **********************************/
#define T_ int //各种循环变量的类型,特殊情况可以改成long long
#define fuck(s_) {cout<<s_<<endl;return 0;} //输出s_的内容并结束程序:fuck("NO");
/*************************
* 各种循环函数
* re:3个参数:循环变量,起始值,终止值
View gist:deb668adf53fa2dddc1c
/* **********************************
* 精简版头文件 修改自岛娘的头文件
* By lz96@foxmail.com
* 复制到你的代码头部即可使用
* **********************************/
#define T_ int //各种循环变量的类型,特殊情况可以改成long long
#define fuck(s_) {cout<<s_<<endl;return 0;} //输出s_的内容并结束程序:fuck("NO");
/*************************
* 各种循环函数
View gist:d81c7150e7cefee5e573
/* **********************************
* 精简版头文件 修改自岛娘的头文件
* By lz96@foxmail.com
* 复制到你的代码头部即可使用
* **********************************/
#define T_ int //各种循环变量的类型,特殊情况可以改成long long
#define fuck(s_) {cout<<s_<<endl;return 0;} //输出s_的内容并结束程序:fuck("NO");
/*************************
* 各种循环函数
View formatter.cpp
template <class T>
class MyFormatting;
typedef boost::variant<bool, int, std::string> var_t;
template <>
class MyFormatting<int>
{
private:
const int& nucleus;
View .vimrc
set nocompatible
filetype on
filetype plugin on
set autoindent
set number
set nocompatible
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
View .vimrc
set nocompatible
filetype on
filetype plugin on
set autoindent
set number
set nocompatible
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
View .vimrc
set nocompatible
if &term =~ '^\(xterm\|screen\)$' && $COLORTERM == 'gnome-terminal'
set t_Co=256
endif
filetype on
filetype plugin on
set autoindent
set number
set nocompatible
filetype off " required
View .vimrc
set nocompatible
set shell=/bin/bash
if &term =~ '^\(xterm\|screen\)$' && $COLORTERM == 'gnome-terminal'
set t_Co=256
endif
filetype on
filetype plugin on
set autoindent
set number
set nocompatible
View test.cpp
#include <iostream>
#include <cstddef> //size_t类型在cstddef中被定义
#include <cassert> //assert宏在cassert中被定义
#include <cstring> //strlen函数
using namespace std;
const size_t SLEN=30;
/* 这一行定义了一个值为30,类型是int的名叫SLEN的常量
View .vimrc
set nocompatible
set guiheadroom=-20
set shell=/bin/bash
if &term =~ '^\(xterm\|screen\)$' && $COLORTERM == 'gnome-terminal'
set t_Co=256
endif
filetype on
filetype plugin on
set autoindent
set number
You can’t perform that action at this time.