結果

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

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <cmath>
#include <stdio.h>
#include <queue>
#include <deque>
#include <cstdio>
#include <set>
#include <map>
#include <bitset>
#include <stack>
#include <cctype>
using namespace std;
string s;
int main() {
	cin >> s;
	for (int i = 0; i < s.size(); i++) {
		if (i != s.size() - 1 && s[i] == s[i + 1])continue;
		cout << s[i];
	}
	cout << endl;
}
0