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.Collections.Generic; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var l = ReadInt(); | |
var N = l[0]; | |
var M = l[1]; |
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; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var input = Console.ReadLine().Split(); | |
var W = int.Parse(input[0]); | |
var H = int.Parse(input[1]); | |
if ( W % 16 != 0 || H % 9 != 0 ) |
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
static Status getNumOfTweet(Tokens t, int targetNum) | |
{ | |
// targetNum番目のツイートを返す(過去3200ツイート中で) | |
// [注意] 3200ツイート以上のロードが必要な場合、取得できる限り取得してツイートを返す。 | |
// なんか3200土10ぐらいの差があるが、そこら辺までしか取得できない。 | |
var me = t.Account.UpdateProfile(); | |
var targetCount = me.StatusesCount - targetNum; | |
if (targetCount == 0 ) | |
{ |
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
#! /usr/bin/env python2.7 | |
#coding: utf-8 | |
import json | |
import requests | |
import tweepy # pip install tweepy | |
KEY = "" | |
SECRET = "" | |
ATOKEN = "" | |
ASECRET = "" |
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.Collections.Generic; | |
using CoreTweet; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// トークン設定 |
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 CoreTweet; // NuGetからインストールできます(使用したのはVer. 0.6.1.267) | |
using CoreTweet.Streaming; | |
namespace simpleTwitter | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var S = Console.ReadLine(); | |
var Nums = Console.ReadLine().Split(); | |
var ret = ""; | |
for(var i = 0; i < S.Length; ++i ) |
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; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var input = Console.ReadLine().Split(' '); | |
var x = int.Parse(input[0]); | |
var y = int.Parse(input[1]); | |
if (x < y ) |
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
#define _CRT_SECURE_NO_DEPRECATE | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
enum FoodCategory { | |
Bread, | |
Don, |