Skip to content

Instantly share code, notes, and snippets.

View yoshiokatsuneo's full-sized avatar

Tsuneo Yoshioka yoshiokatsuneo

View GitHub Profile
puts "Hello Ruby"
#include <iostream>
using namespace std;
int main(){
cout << "Hello C++" << endl;
}
int main()
{
printf("<Hello>world<h1>\n");
}
(1..10).each{|i|
puts i;
}
#
@yoshiokatsuneo
yoshiokatsuneo / gist:11144441
Created April 21, 2014 14:31
topcoder template
$BEGINCUT$
/*
$PROBLEMDESC$
*/
$ENDCUT$
// #line $NEXTLINENUMBER$ "$FILENAME$"
#include <fstream>
#include <iostream>
#include <iostream>
#!/usr/bin/ruby
def normalize_pointset(pointset)
minx = 1000;
miny = 1000;
pointset.each{|p|
minx = [minx, p[0]].min
miny = [miny, p[1]].min
}
normalized_pointset = []
@yoshiokatsuneo
yoshiokatsuneo / dijkstra.cpp
Last active November 2, 2016 21:00
dijkstra
#include <vector>
#include <queue>
#include <stdio.h>
using namespace std;
#define INF 1e9
class Graph{
struct edge_t{