結果

問題 No.2460 #強調#
コンテスト
ユーザー qi_yao
提出日時 2023-09-08 21:37:39
言語 C++17(clang)
(clang++ 21.1.8 + boost 1.89.0)
コンパイル:
clang++ -O2 -lm -std=c++1z -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 679 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,716 ms
コンパイル使用メモリ 169,460 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2026-03-13 07:15:15
合計ジャッジ時間 5,203 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

//洛门永存
#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
#define MOD 1000000007
#define INF 0x3f3f3f3f
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define LL long long
#define ULL unsigned long long
#define LD long double
#define PII pair<int, int>
//#define int long long
LL gcd(LL a,LL b) {return b ? gcd(b, a % b) : a;}
LL lcm(LL a,LL b) {return a / gcd(a, b) * b;}
//head

signed main()
{
	string s; cin >> s;
	
	bool ok = 0;
	for (int i = 0; i < s.size(); i ++ ){
		if (!ok && s[i] == '#') ok = 1;
		else if (s[i] != '#' && ok) cout << s[i];
		else if (ok && s[i] == '#') break;
	}
}
0