正しい実装でt.coの見えない世界へ
document: https://dev.twitter.com/docs/streaming-api/user-streams
#!/usr/bin/ruby | |
# encoding: utf-8 | |
num = 2**1000 | |
ans = 0 | |
str = num.to_s | |
str.length.times{|i| | |
ans = ans + str[i,1].to_i | |
} | |
print "#{ans}\n" |
チーム名とTwitter垢。鍵垢はのせてないです。 | |
のってない人は教えてくれると直します。まちがってたらごめんなさい。 | |
なのやん - @tomo_gomi & しろやん[NiihamaNCT?] | |
pyaaaaa - @satashun & @hiromu1996[灘] | |
suzacs - @poke_odan[奈良朱雀] | |
EPOCH - @__int & @catupper[灘] | |
VitaminL - [紀北工業高?] | |
リンプトン - | |
まだ一年生 - |
正しい実装でt.coの見えない世界へ
document: https://dev.twitter.com/docs/streaming-api/user-streams
#include <iostream> | |
#include <algorithm> | |
#include <cstdio> | |
#include <cstring> | |
using namespace std; | |
int main(void) | |
{ | |
int step[64] = {}; | |
int n; |
require 'open-uri' | |
require 'rexml/document' | |
probs = [] | |
open("http://ideone.com/plain/oBMmCx").readlines.each do |line| | |
line.chomp! | |
next if line == "" | |
xml = open("http://judge.u-aizu.ac.jp/onlinejudge/webservice/problem?id=#{line}&status=false").read | |
doc = REXML::Document.new(xml) | |
probs << [doc.elements['problem/status/accepted'].text.to_i,"<a href=\"http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=#{line}\">#{line} #{doc.elements['problem/name'].text.gsub("\n","")}</a><br>"] |
package com.example.calculator; | |
import android.os.Bundle; | |
import android.app.Activity; | |
import android.view.Menu; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
import android.widget.Button; | |
import android.widget.TextView; |
class Player | |
def play_turn(warrior) | |
warrior.walk! | |
end | |
end |
require 'spec_helper' | |
describe 'Diff' do | |
before { visit diff_index_path } | |
specify 'ユーザーがどちらも存在する時' do | |
within('form') do | |
fill_in 'user1', with: 'refiute' | |
fill_in 'user2', with: 'kagasan' | |
click_button 'Submit' |
#! /usr/bin/env ruby | |
# 入力 | |
print "number of variable:" | |
var = gets.to_i | |
print "number of expression:" | |
exp = gets.to_i | |
a = Array.new(exp) | |
b = Array.new(exp, 0.to_r) |
FROM ubuntu:18.04 | |
MAINTAINER Katsuki CHOUSA <k-chousa@is.naist.jp> | |
RUN apt-get update && \ | |
apt-get install -y \ | |
build-essential \ | |
cmake \ | |
git \ | |
wget \ | |
vim \ |