結果
| 問題 |
No.1469 programing
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-09 22:31:23 |
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 490 bytes |
| コンパイル時間 | 2,521 ms |
| コンパイル使用メモリ | 161,084 KB |
| 実行使用メモリ | 16,336 KB |
| 最終ジャッジ日時 | 2024-06-25 06:08:12 |
| 合計ジャッジ時間 | 11,198 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | AC * 5 RE * 9 TLE * 1 |
ソースコード
#include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
#define ll long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
//namespace mp = boost::multiprecision;
//mp::cpp_int
/* nyuuryoku retu de ukeoru string s; getline(cin,s); */
using namespace std;
signed main(){
string S;
cin >> S;
for(int i = 0; i < S.size() ; i++){
if(S.at(i) == S.at(i+1) && i+1 <= S.size()){
S.erase(S.begin()+i);
}
}
cout << S <<endl;
}