2#include"../../kyopro_library/template.hpp"
6 vector<
int> ret(s.size());
7 REP(i,s.size()) ret[i]=(lower ? s[i]-
'a' : s[i]-
'A');
19 REP(i,a.size()) ret.push_back(lower ?
char(
'a'+a[i]) :
char(
'A'+a[i]));
vector< int > ReadString(bool lower=true)
入力から文字列を受け取って数列に変換する
string ViToString(const vector< int > &a, bool lower=true)
数列を文字列に変換する
vector< int > StringToVi(const string &s, bool lower=true)
文字列を数列に変換する