結果
問題 |
No.2460 #強調#
|
ユーザー |
![]() |
提出日時 | 2023-09-11 15:46:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 459 bytes |
コンパイル時間 | 265 ms |
コンパイル使用メモリ | 40,388 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 05:52:46 |
合計ジャッジ時間 | 1,033 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
/* -*- coding: utf-8 -*- * * 2460.cc: No.2460 #強調# - yukicoder */ #include<cstdio> #include<algorithm> 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; }