結果

問題 No.2460 #強調#
ユーザー coco0715
提出日時 2023-09-10 13:07:12
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 263 bytes
コンパイル時間 1,556 ms
コンパイル使用メモリ 165,860 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-28 04:35:46
合計ジャッジ時間 2,188 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
//define
#define yes (cout<<"Yes"<<endl)
#define no (cout<<"No"<<endl)
using namespace std;

int main(){
string s;cin>>s;
int c=0;
for(char x:s){
    if(x=='#'){
        c++;
    }
    else if(c==1){
        cout<<x;
    }
}cout<<endl;

}
0