Skip to content

Instantly share code, notes, and snippets.

@oilover
oilover / SHA_256_hak.cpp
Created March 19, 2016 02:35 — forked from hak8or/SHA_256_hak.cpp
SHA-256 basic implementation in C++ with a test.
#include <iostream>
#include <sstream>
#include <bitset>
#include <vector>
#include <iomanip>
#include <cstring>
// By: hak8or
// To compile: g++ -std=c++0x SHA_256_hak.cpp -o SHA_256_hak
// To run self test just run the following: SHA_256_hak
@oilover
oilover / L.cc
Created September 11, 2014 13:48
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
using namespace std;
typedef long long ll;
#define prt(k) cout << #k " = " << k << endl;
const int N = 50020;
@oilover
oilover / zoj3812.cpp
Created September 10, 2014 05:14
zoj3812.cpp
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstring>
using namespace std;
#include<cmath>
#include<vector>
typedef long long ll;
#define prt(k) cout<< #k" = " << k<< " \n"; ///
typedef unsigned long long ull;