/* -*- coding: utf-8 -*- * * 2460.cc: No.2460 #強調# - yukicoder */ #include #include using namespace std; /* constant */ const int MAX_N = 100; /* typedef */ /* global variables */ char s[MAX_N + 4]; /* subroutines */ /* main */ int main() { scanf("%s", s); bool ok = false; for (char *cpt = s; *cpt; cpt++) { if (*cpt == '#') ok = ok ^ true; else if (ok) putchar(*cpt); } putchar('\n'); return 0; }