This file contains 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
import json | |
import os | |
from datetime import datetime, timezone, timedelta | |
import requests | |
from twython import Twython | |
# tokens / keys | |
CONSUMER_KEY = os.environ['TW_CONSUMER_API_KEY'] | |
CONSUMER_SECRET = os.environ['TW_CONSUMER_API_SECRET_KEY'] |
This file contains 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 <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <cmath> | |
#include <cassert> | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
#include <queue> | |
#include <set> |
This file contains 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
・ふたつのコマンドを処理するタイプライターを考える | |
・ひとつは文字を打つこと | |
・もうひとつは直近のコマンドを取り消す(undoする)こと | |
・undo自身もコマンドなので、undo自体がundoされることもある | |
・次のプロシージャを実装せよ | |
・Init() | |
・最初に1度だけ呼ばれる。 | |
・これはコマンドではないのでundoする必要はない。 | |
・データ構造などの初期化をする。 |
This file contains 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
・N個の輪っかがある | |
・次のプロシージャを実装せよ | |
・Init(N) | |
・最初に1回だけ呼ばれる | |
・輪っかが N 個あることを表す | |
・Link(A, B) | |
・輪っか A と輪っか B をつなげる | |
・順序は関係ないので Link(A, B) と Link(B, A) は同じ意味 |
This file contains 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
・256x256 のフィールド、各マスには最大15個の小石 | |
・オドメーターは最初 (0, 0) にあり、北向き | |
・オドメーターはプログラムにしたがって動く | |
・プログラム中に記述する基本コマンド | |
・左を向く(left) | |
・右を向く(right) | |
・前進する(move) | |
・そのマスに小石があれば拾う(get) | |
・小石を持っていて、かつそのマスに小石が15個未満しかなければ置く(put) |
This file contains 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
- [字, "[あざな…人の呼び名]"] | |
- [一日, "[いちじつ…ある日]"] | |
- [一旦, "[いつたん…ある朝・ある日]"] | |
- [所謂, "[いはゆる…言葉の引用を示す]"] | |
- [色, "[いろ…容貌・顔つき,様子・景色]"] | |
- [正色, "[いろヲただス…まじめな顔になる]"] | |
- [作色, "[いろヲなス…怒って顔色を変える]"] | |
- [裏, "[うら…~の中で]"] | |
- [器, "[うつは…才能ある人]"] | |
- [客, "[かく…よそ者・食客]"] |
This file contains 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
# 源流思想 | |
## ギリシア思想 | |
- [タレス, "最初の哲学者,「万物の根源(アルケー)は水である」"] | |
- [ヘラクレイトス, "アルケーを火とする,「万物は流転する」"] | |
- [ピタゴラス, "アルケーは数,数の関係によって秩序(コスモス)が保たれる"] | |
- [デモクリトス, "古代原子論の提唱,アルケーは原子(アトム=これ以上分割できないもの)"] | |
- [ソフィスト, "絶対的価値観を認めない相対主義,弁論術などの処世術を教えた人々"] | |
- [プロタゴラス, "ソフィスト,「人間は万物の尺度である」"] | |
- [ゴルギアス, "ソフィスト,「何ものも知りえない」,懐疑主義"] | |
- [ソクラテス, "人間として「善く生きること」,「魂の世話」が必要,善悪について知ると魂に徳が備わる(知徳一致),無知の知,問答によって相手に自覚させる(問答法)"] |
This file contains 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<cstdio> | |
#include<cstring> | |
using namespace std; | |
int dx[] = {1,-1,0,0}, dy[] = {0,0,1,-1}; | |
int F[9][9], C[9][9], V[9][9], cnt, sx, sy; | |
bool dfs(int y, int x, int visited) | |
{ |
This file contains 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<stdio.h> | |
int gcd(int m, int n) | |
{ | |
return m % n == 0 ? n : gcd(n, m % n); | |
} | |
int min(int a, int b) | |
{ | |
return a > b ? b : a; |
This file contains 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
using System; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class CssRules { | |
public static int Nodes = 0; | |
public class Tag |
NewerOlder