#include #include #define _USE_MATH_DEFINES using namespace std; typedef pair P; typedef double db; typedef long long ll; typedef float fl; typedef bool bl; typedef string st; typedef int itn; const int INF=1000000; /*π*/double PI=3.141592653589;ll MOD=1000000007; int dx[4]={1,0,-1,0} , dy[4]={0,1,0,-1}; int DX[8]={0,-1,-1,-1,0,1,1,1} , DY[8]={1,1,0,-1,-1,-1,0,1}; string fi="01234567890123456789"; string al="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"; string AL="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"; int fact(ll i){return i ? fact(i-1)*i:1;}; #define YesNo(flag) if(flag){cout<<"Yes"<>n; rep(i,n){ cout<<"Long"; } } // 文字列sの数値変換の例 int n=atoi(s.c_str()) <=> s=to_string(n) // char数値変換 int n=c-'0' // substrは長さnの文字列s、s.substr(配列の要素(0も含む),文字数); // 配列の総和 accumulate(a,a+n,足されていく初期値(0でいい)); // 配列の中にそれがどれだけあるか count(a,a+n,2('a'));