結果
| 問題 |
No.1469 programing
|
| コンテスト | |
| ユーザー |
nok0
|
| 提出日時 | 2021-04-04 02:10:58 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 110 ms / 3,000 ms |
| コード長 | 193 bytes |
| コンパイル時間 | 1,849 ms |
| コンパイル使用メモリ | 192,164 KB |
| 最終ジャッジ日時 | 2025-01-20 10:52:34 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
string s, u;
int main() {
cin >> s;
u = s[0];
for(int i = 1; i < (int)s.size(); i++)
if(s[i - 1] != s[i])
u += s[i];
cout << u << endl;
}
nok0