結果
問題 | No.2460 #強調# |
ユーザー |
![]() |
提出日時 | 2023-09-08 22:06:31 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 797 ms |
コンパイル使用メモリ | 66,900 KB |
最終ジャッジ日時 | 2025-02-16 19:52:40 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include<iostream> #include<string> using namespace std; int main(){ string s; cin >> s; int n = s.size(); int piv = 0; int mode = 0; while(piv < n){ if (s[piv] == '#'){ mode ^= 1; }else if (mode == 1){ cout << s[piv]; } piv++; } cout << '\n'; }