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 python | |
# encoding: utf-8 | |
# https://qiita.com/isobecky74/items/88e8e0dcb0ee224a31e4 | |
import json | |
import datetime | |
# import requests | |
import urllib | |
import boto3 |
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 python | |
# coding: utf-8 | |
import boto3 | |
import datetime | |
import pprint | |
pp = pprint.PrettyPrinter(indent=4) | |
ce = boto3.client('ce') |
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 <bits/stdc++.h> | |
#define REP(i, n) for(int i=0; i < (int)(n); i++) | |
using namespace std; | |
typedef long long ll; // -9,223,372,036,854,775,808 から 9,223,372,036,854,775,807 | |
template <class T> using vec = std::vector<T>; | |
template <class T> using vec2 = vec<vec<T>>; | |
template <class T> using vec3 = vec<vec<vec<T>>>; |
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 <bits/stdc++.h> | |
#define REP(i, n) for(int i=0; i < (int)(n); i++) | |
using namespace std; | |
typedef long long ll; // -9,223,372,036,854,775,808 から 9,223,372,036,854,775,807 | |
template <class T> using vec = std::vector<T>; | |
template <class T> using vec2 = vec<vec<T>>; | |
template <class T> using vec3 = vec<vec<vec<T>>>; |
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 <bits/stdc++.h> | |
#define REP(i, n) for(int i=0; i < (int)(n); i++) | |
using namespace std; | |
typedef long long ll; // -9,223,372,036,854,775,808 から 9,223,372,036,854,775,807 | |
template <class T> using vec = std::vector<T>; | |
template <class T> using vec2 = vec<vec<T>>; | |
template <class T> using vec3 = vec<vec<vec<T>>>; |
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 <bits/stdc++.h> | |
#define REP(i, n) for(int i=0; i < (int)(n); i++) | |
using namespace std; | |
typedef long long ll; // -9,223,372,036,854,775,808 から 9,223,372,036,854,775,807 | |
template <class T> using vec = std::vector<T>; | |
template <class T> using vec2 = vec<vec<T>>; | |
template <class T> using vec3 = vec<vec<vec<T>>>; |
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 <bits/stdc++.h> | |
#define REP(i, n) for(int i=0; i < (int)(n); i++) | |
using namespace std; | |
typedef long long ll; // -9,223,372,036,854,775,808 から 9,223,372,036,854,775,807 | |
template <class T> using vec = std::vector<T>; | |
template <class T> using vec2 = vec<vec<T>>; | |
template <class T> using vec3 = vec<vec<vec<T>>>; |
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 <bits/stdc++.h> | |
#define REP(i, n) for(int i=0; i < (int)(n); i++) | |
using namespace std; | |
typedef long long ll; // -9,223,372,036,854,775,808 から 9,223,372,036,854,775,807 | |
template <class T> using vec = std::vector<T>; | |
template <class T> using vec2 = vec<vec<T>>; | |
template <class T> using vec3 = vec<vec<vec<T>>>; |
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 <bits/stdc++.h> | |
#define REP(i, n) for(int i=0; i < (int)(n); i++) | |
using namespace std; | |
typedef long long ll; | |
#define DEBUG | |
ll sentinel(const vector<int>& table, int i, ll def=0){ | |
if(!(0 <= i && i < table.size())){ |
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 <bits/stdc++.h> | |
#define REP(i, n) for(int i=0; i < (int)(n); i++) | |
using namespace std; | |
bool is_conflicting(complex<int> p, complex<int> q){ | |
if(p.real() == q.real()){ | |
return true; | |
} | |
if(p.imag() == q.imag()){ |