結果
問題 |
No.2460 #強調#
|
ユーザー |
|
提出日時 | 2023-12-19 05:37:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 807 bytes |
コンパイル時間 | 1,789 ms |
コンパイル使用メモリ | 168,660 KB |
実行使用メモリ | 16,268 KB |
最終ジャッジ日時 | 2024-09-27 08:37:25 |
合計ジャッジ時間 | 2,534 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> #define ll long long #define endl "\n" #define F first #define double long double #define S second #define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0) using namespace std; const double EPS = 0.00000001; const ll N = 5e5 + 20, MOD = 1e9+7; ll n, tab[N], dp[N][2]; vector<int> adj[N]; bool vis[N][2]; void solve(){ string s; cin>> s; bool flag=false; for(int i=0;i<s.length();i++){ if(s[i]=='#' && flag!=true) { flag=true; continue;} if (flag==true and s[i]!='#'){ cout<<s[i]; } if (s[i]=='#' && flag==true) break; } } signed main(){ FAST; ll tt = 1; // freopen("input.in", "r", stdin); // cin >> tt; // while (tt--) solve(); return 0; }