結果

問題 No.2460 #強調#
ユーザー Ahmed AmamouAhmed Amamou
提出日時 2023-12-19 05:37:32
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 807 bytes
コンパイル時間 1,568 ms
コンパイル使用メモリ 167,652 KB
実行使用メモリ 15,808 KB
最終ジャッジ日時 2023-12-19 05:37:35
合計ジャッジ時間 2,720 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
15,808 KB
testcase_01 AC 5 ms
15,808 KB
testcase_02 AC 5 ms
15,808 KB
testcase_03 AC 6 ms
15,808 KB
testcase_04 AC 6 ms
15,808 KB
testcase_05 AC 6 ms
15,808 KB
testcase_06 AC 5 ms
15,808 KB
testcase_07 AC 5 ms
15,808 KB
testcase_08 AC 5 ms
15,808 KB
testcase_09 AC 6 ms
15,808 KB
testcase_10 AC 5 ms
15,808 KB
testcase_11 AC 6 ms
15,808 KB
testcase_12 AC 6 ms
15,808 KB
testcase_13 AC 5 ms
15,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0