結果
| 問題 |
No.1469 programing
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-10 18:50:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 138 ms / 3,000 ms |
| コード長 | 212 bytes |
| コンパイル時間 | 1,529 ms |
| コンパイル使用メモリ | 166,224 KB |
| 実行使用メモリ | 12,108 KB |
| 最終ジャッジ日時 | 2024-06-26 07:42:03 |
| 合計ジャッジ時間 | 2,878 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string S;
cin >> S;
int N = S.size();
for(int i=0;i<N-1;i++){
if(S[i] != S[i+1]) cout << S[i];
}
cout << S[N-1] << endl;
}