はまやんはまやんはまやん

hamayanhamayan's blog

XXFESTIVAL [CODE FESTIVAL 2017 予選B A]

http://code-festival-2017-qualb.contest.atcoder.jp/tasks/code_festival_2017_qualb_a

解法

http://code-festival-2017-qualb.contest.atcoder.jp/submissions/1671247

C++だと部分列を扱うにはsubstrを使うといい。

string S;
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> S;
    cout << S.substr(0, S.length() - 8) << endl;
}