Skip to content

Instantly share code, notes, and snippets.

View yoshiokatsuneo's full-sized avatar

Tsuneo Yoshioka yoshiokatsuneo

View GitHub Profile
@yoshiokatsuneo
yoshiokatsuneo / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
We couldn’t find that file to show.
# POH3 // DP
m = gets.to_i
n = gets.to_i
dp = Array.new(m+1, 9999999999999)
dp[0] = 0
n.times{
q, r = gets.split.map(&:to_i)
# POH 3 // greedy, bit
@m = gets.to_i
@n = gets.to_i
@companies = []
@n.times{
q, r = gets.split.map(&:to_i)
@companies.push([q, r])
}
# POH 3 // greedy
@m = gets.to_i
@n = gets.to_i
@companies = []
@n.times{
q, r = gets.split.map(&:to_i)
@companies.push([q, r])
}
@yoshiokatsuneo
yoshiokatsuneo / hmpgw.markdown
Created November 13, 2014 02:29
A Pen by Tsuneo Yoshioka.
#include <iostream>
using namespace std;
int main(void){
// Here your code !
xxxxxxxxxgggggggxxxxxxxxggggggZZZZZZZZZZZggggg
}
# Here your code !
require 'net/http'
require 'uri'
require 'pp'
require 'json'
url = URI.parse(URI.escape('https://app.rakuten.co.jp/services/api/IchibaItem/Search/20140222?applicationId=1044477890616064296&keyword=アルゴリズム'))
res = Net::HTTP.start(url.host, url.port, use_ssl: true){|http|
http.get(url.path + "?" + url.query);
}
#include <iostream>
using namespace std;
int main(void){
// Here your code !
xxxxxxxxxx
}
#include <iostream>
using namespace std;
int main(void){
// Here your code !
}