結果

問題 No.1469 programing
ユーザー se1ka2
提出日時 2021-04-09 21:20:52
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 140 ms / 3,000 ms
コード長 229 bytes
コンパイル時間 618 ms
コンパイル使用メモリ 63,744 KB
実行使用メモリ 11,088 KB
最終ジャッジ日時 2024-06-25 03:50:13
合計ジャッジ時間 1,590 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main()
{
    string s;
    cin >> s;
    int n = s.size();
    for(int i = 0; i < n; i++){
        if(i && s[i] == s[i - 1]) continue;
        cout << s[i];
    }
    cout << endl;
}
0