結果
問題 | No.2460 #強調# |
ユーザー |
|
提出日時 | 2023-09-08 22:23:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 421 bytes |
コンパイル時間 | 1,820 ms |
コンパイル使用メモリ | 166,024 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 15:31:39 |
合計ジャッジ時間 | 1,861 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using ll = long long; using llu = long long unsigned; using namespace std; #define MOD 998244353 int main() { string S; cin >> S; bool isStart = false; for (auto x : S) { if (x=='#') { if (isStart) { isStart = false; } else { isStart = true; } } else { if (isStart) { cout << x; } } } cout << endl; return 0; }