This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <list> | |
#include <cstdlib> | |
#include <chrono> | |
using namespace std; | |
int main() | |
{ | |
list<int> l; | |
for (int i=0; i<10000000; ++i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "debug.hpp" | |
#include "graphdsl.hpp" | |
#include "backend/leveldbgraph.hpp" | |
#include<cstdio> | |
#include<iostream> | |
#include <fstream> | |
#include<cstdlib> | |
#include<algorithm> | |
#include<vector> | |
#include<queue> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ********************************** | |
* 精简版头文件 修改自岛娘的头文件 | |
* By lz96@foxmail.com | |
* 复制到你的代码头部即可使用 | |
* **********************************/ | |
#define T_ long long //各种循环变量的类型,特殊情况可以改成long long | |
#define fuck(s_) {cout<<s_<<endl;return 0;} //输出s_的内容并结束程序:fuck("NO"); | |
/************************* | |
* 各种循环函数 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) | |
{ | |
#ifndef __STDC__ | |
printf("this compiler doesn't conform to C standard"); | |
return 1; | |
#else | |
return 0; | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <cstddef> | |
int main() | |
{ | |
execlp("grep", "grep", "-Po", "(?<=answer=\")[^\"]*(?=\")", "sample.in", NULL); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |