結果
問題 |
No.1469 programing
|
ユーザー |
|
提出日時 | 2021-04-16 14:52:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 126 ms / 3,000 ms |
コード長 | 295 bytes |
コンパイル時間 | 557 ms |
コンパイル使用メモリ | 68,340 KB |
実行使用メモリ | 11,092 KB |
最終ジャッジ日時 | 2024-07-02 15:15:22 |
合計ジャッジ時間 | 2,031 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> using namespace std; typedef long long ll; int main() { string s; cin >> s; char now = 'A'; for (int i = 0; i < s.size(); i++) { if (s[i] != now) cout << s[i]; now = s[i]; } puts(""); return 0; }