Skip to content

Instantly share code, notes, and snippets.

View htfy96's full-sized avatar
🐢
WFH

Zheng Luo htfy96

🐢
WFH
View GitHub Profile
#include <iostream>
#include <list>
#include <cstdlib>
#include <chrono>
using namespace std;
int main()
{
list<int> l;
for (int i=0; i<10000000; ++i)
#include "debug.hpp"
#include "graphdsl.hpp"
#include "backend/leveldbgraph.hpp"
#include<cstdio>
#include<iostream>
#include <fstream>
#include<cstdlib>
#include<algorithm>
#include<vector>
#include<queue>
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 nolazyredraw
set number
/* **********************************
* 精简版头文件 修改自岛娘的头文件
* By lz96@foxmail.com
* 复制到你的代码头部即可使用
* **********************************/
#define T_ long long //各种循环变量的类型,特殊情况可以改成long long
#define fuck(s_) {cout<<s_<<endl;return 0;} //输出s_的内容并结束程序:fuck("NO");
/*************************
* 各种循环函数
@htfy96
htfy96 / 1.cpp
Last active April 4, 2016 15:04
#include <iostream>
#include <cstddef>
#include <cstdint>
#include <type_traits>
using namespace std; //for convinience
struct Fixed
{
static const float up ;
static const float down ; // avoid float-point division
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf8">
<title>Under Construction</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-beta1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/js/materialize.min.js"></script>
</head>
<body>
@htfy96
htfy96 / test_inv_sqrt.cpp
Last active March 6, 2016 14:18
test_inv_sqrt.cpp
// Compile it with -std=c++11 and -O3
#include <cmath>
#include <iostream>
#include <chrono>
#include <vector>
#include <cstdlib>
#include <cstdint>
float Q_rsqrt( float number )
#include <stdio.h>
int main(void)
{
#ifndef __STDC__
printf("this compiler doesn't conform to C standard");
return 1;
#else
return 0;
#endif
@htfy96
htfy96 / test.cpp
Last active January 30, 2016 16:02
test.cpp
#include <unistd.h>
#include <cstddef>
int main()
{
execlp("grep", "grep", "-Po", "(?<=answer=\")[^\"]*(?=\")", "sample.in", NULL);
}
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
set magic