結果
問題 | No.2460 #強調# |
ユーザー |
![]() |
提出日時 | 2023-09-08 21:21:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 611 bytes |
コンパイル時間 | 3,708 ms |
コンパイル使用メモリ | 250,800 KB |
最終ジャッジ日時 | 2025-02-16 19:28:47 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace atcoder; using namespace std; using ll=long long; using ld=long double; ld pie=3.141592653589793; ll mod=1000000007; ll inf=10090000000000000; int main(){ string s; cin >> s; ll now=0; string t; for (ll i = 0; i < s.size(); i++) { if (s[i]=='#') { if (now==0) { now++; }else{ break; } }else{ if (now==1) { t.push_back(s[i]); } } } cout << t << endl; }