結果

問題 No.1469 programing
ユーザー forest3
提出日時 2021-04-13 20:41:17
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 141 ms / 3,000 ms
コード長 218 bytes
コンパイル時間 1,464 ms
コンパイル使用メモリ 165,368 KB
実行使用メモリ 11,216 KB
最終ジャッジ日時 2024-06-30 01:08:59
合計ジャッジ時間 2,595 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main()
{
	string S;
	cin >> S;

	int N = S.size();
	for( int i = 0; i < N; i++ ) {
		if( i + 1 < N && S[i] == S[i + 1] ) continue;
		cout << S[i];
	}
	cout << endl;
}
0