結果

問題 No.1469 programing
ユーザー racsosabe
提出日時 2021-04-09 22:13:29
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 33 ms / 3,000 ms
コード長 245 bytes
コンパイル時間 1,458 ms
コンパイル使用メモリ 165,620 KB
実行使用メモリ 8,440 KB
最終ジャッジ日時 2024-06-25 05:46:02
合計ジャッジ時間 2,434 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

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

const int N = 5000000 + 5;

char s[N];

int main(){
	scanf("%s", s);
	int n = strlen(s);
	for(int i = 0; i < n; i++){
		if(i == 0 or s[i] != s[i - 1]) putchar(s[i]);
	}
	putchar('\n');
	return 0;
}
0