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> | |
#include <map> | |
#include <string> | |
#include <vector> | |
#include <cstdio> | |
using namespace std; | |
int main(int argc, const char * argv[]){ | |
while(1){ |
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
def table(n): | |
t = [] | |
for w in xrange(1, n + 1): | |
for h in xrange(1, w): | |
t.append((pow(h, 2) + pow(w, 2), h, w)) | |
return sorted(t) | |
if __name__ == '__main__': | |
t = table(150) | |
while True: |
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> | |
#include <utility> | |
#include <algorithm> | |
#include <vector> | |
#include <tuple> | |
#include <math.h> | |
using namespace std; | |
const int N = 150; |
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
g++ -std=c++11 $1 | |
./a.out |
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> | |
#include <utility> | |
#include <algorithm> | |
#include <vector> | |
#include <math.h> | |
using namespace std; | |
const int N = 150; |
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> | |
#include <utility> | |
#include <algorithm> | |
#include <vector> | |
using namespace std; | |
const int N = 5; | |
int main(int argc, char const *argv[]) |
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
int main(int argc, char const *argv[]) | |
{ | |
int N = 5; | |
vector< pair<int, int> > areas; | |
for (int i = 0; i < N; ++i) | |
{ | |
for (int j = 0; j < N; ++j) | |
{ | |
pair<int, int> p; | |
p.first = i * i + j * j; |
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
/*親要素*/ | |
.ribbon-article { | |
overflow: hidden; | |
position: relative; | |
width: 200px; | |
height: 100px; | |
background-color: #f4edd4; | |
} | |
/*リボンタグ*/ |
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
import datetime | |
import random | |
import hashlib | |
import base64 | |
import requests | |
USER_NAME = "" | |
BLOG_ID = "ブログのURL" | |
API_KEY = "ブログの詳細設定のとこにかいてあるやつ" |
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
import threading | |
import sys | |
def sleepsort(array): | |
for a in array: | |
threading.Timer(a, echo, [a]).start() | |
def echo(num): | |
print num |