Skip to content

Instantly share code, notes, and snippets.

View aahung's full-sized avatar
🔨

_sam aahung

🔨
View GitHub Profile
@aahung
aahung / 4157.cpp
Last active October 10, 2015 08:42
ICPC Regionals 2008 >> Asia - Aizu
#include <stdio.h>
#include <string.h>
//#define DEBUG
int n;
int w;
int histo[12]; // since at most 10 intervals
int main() {
@aahung
aahung / 4964.cpp
Last active October 10, 2015 01:58
ICPC Regionals 2010 :: Africa/Middle East - Arab Contest
//
// main.cpp
// testing1
//
// Created by Xinhong LIU on 17/5/14.
// Copyright (c) 2014 Xinhong LIU. All rights reserved.
//
#include <iostream>
#include <fstream>
@aahung
aahung / icpc_4966.cpp
Last active October 3, 2015 10:59
ICPC 4966
#include <iostream>
#include <vector>
#include <string>
using namespace std;
typedef struct node_t {
vector<int> values;
vector<node_t *> e_values;
int evaluate;
@aahung
aahung / AA Pay Calculator Input
Last active August 29, 2015 14:25
AA Pay Calculator
X 38 #July 1st Taxi
$ (0, []),
T 6.74 #July 7th Super Fresh Asian Market
$ (0, []),
T 37.922 #July 7th Superstore
$ (10.85, [M, C, W]), (0, []),
M 20 #July 9th 711
@aahung
aahung / bash_deviceQuery.sh
Created July 16, 2015 01:43
run deviceQuery of CUDA on all compute nodes
for i in {1..16}; do ssh compute-0-${i} /share/apps/cuda/samples/1_Utilities/deviceQuery/deviceQuery; done
@aahung
aahung / xsitemapgenerator.md
Last active August 29, 2015 14:18
XSitemapGenerator