結果
問題 |
No.1469 programing
|
ユーザー |
|
提出日時 | 2021-04-09 21:21:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 23 ms / 3,000 ms |
コード長 | 518 bytes |
コンパイル時間 | 1,580 ms |
コンパイル使用メモリ | 167,512 KB |
実行使用メモリ | 14,308 KB |
最終ジャッジ日時 | 2024-06-25 03:50:56 |
合計ジャッジ時間 | 2,546 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define int ll #define _FastIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) #define pb emplace_back #define pii pair<int , int> #define F first #define S second const int mod = 1000000007; const int MAXX = 1e6 + 5; string s; signed main() { _FastIO; cin >> s; string g = ""; g += s[0]; for(int i = 1; i < s.size(); i++){ if(s[i] != s[i - 1]) g += s[i]; } cout << g << endl; return 0; }