This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
# 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) |
This file contains hidden or 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
# 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]) | |
} |
This file contains hidden or 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
# 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]) | |
} |
A Pen by Tsuneo Yoshioka on CodePen.
This file contains hidden or 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> | |
using namespace std; | |
int main(void){ | |
// Here your code ! | |
xxxxxxxxxgggggggxxxxxxxxggggggZZZZZZZZZZZggggg | |
} |
This file contains hidden or 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
# 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); | |
} |
This file contains hidden or 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> | |
using namespace std; | |
int main(void){ | |
// Here your code ! | |
xxxxxxxxxx | |
} |
This file contains hidden or 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> | |
using namespace std; | |
int main(void){ | |
// Here your code ! | |
} |