結果
問題 | No.2460 #強調# |
ユーザー |
|
提出日時 | 2023-09-08 21:30:48 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 2,105 ms |
コンパイル使用メモリ | 194,604 KB |
最終ジャッジ日時 | 2025-02-16 19:36:00 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); string S; cin>>S; string ans=""; int f=0; for(auto i:S){ if(f)ans+=i; if(i=='#')f=1-f; } ans.pop_back(); cout<<ans<<'\n'; }