Glide is the easiest way to create useful slide for all of your Gists.
- input key
<-
to go backward. - input key
->
to go forward.
#include<iostream> | |
using namespace std; | |
int main() { | |
int i, j; | |
while(cin >> i >> j) { | |
int sum = i + j; | |
int count = 0; | |
while(sum > 0) { |
require 'tweetstream' | |
TweetStream.configure do |config| | |
config.consumer_key = 'hoge' | |
config.consumer_secret = 'hoge' | |
config.oauth_token = 'hoge' | |
config.oauth_token_secret = 'hoge' | |
config.auth_method = :oauth | |
end |
array = [48, 72, 96, 144] | |
dirs = ["drawable-mdpi", "drawable-hdpi", "drawable-xhdpi", "drawable-xxhdpi"] | |
dirs.each do |dir| | |
system("mkdir #{dir}") | |
end | |
Dir::glob("*.png").each do |file| | |
array.each_with_index do |size, i| | |
dir = dirs[i] |
require 'fssm' | |
LINE = "--------------------------" | |
def run_system(base, file) | |
file_names = file.split(".") | |
input_file_name = file_names[0] + ".in" | |
puts "" | |
puts "RUN: #{file}" | |
puts LINE |
class MonstersValley2 { | |
public: | |
int minimumPrice(vector <int> dread, vector <int> price) { | |
int result = solve(dread, price, 0, 0, 0, dread.size()); | |
return result; | |
} | |
int solve(vector<int> d, vector<int> p, int i ,long long int sum, int sum_p, int last) { | |
if(last == i) return sum_p; | |
if(sum < d[i]) { |
class ValueHistogram { | |
public: | |
vector <string> build(vector <int> values) { | |
vector <string> result; | |
vector<int> c(10, 0); | |
vector<string> s(51, ".........."); | |
for(int i=0;i < values.size();i++) { | |
s[c[values[i]]][values[i]] = 'X'; | |
c[values[i]]++; |
#baners { | |
width: 500px; | |
line-height: 40px; | |
padding: 10px; | |
/**************** | |
* 以下を追加する | |
****************/ | |
margin-left: auto; | |
margin-right: auto; |
#include<sstream> | |
#include<iostream> | |
#include<vector> | |
#include<list> | |
#include<string> | |
using namespace std; | |
class TestSample { | |
public: | |
int wordlen(string word) { |