結果
問題 |
No.1469 programing
|
ユーザー |
|
提出日時 | 2024-03-22 10:55:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 150 ms / 3,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 4,046 ms |
コンパイル使用メモリ | 251,208 KB |
最終ジャッジ日時 | 2025-02-20 10:54:10 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll = long long; using ld = long double; int main() { string S; cin >> S; cout << S[0]; for (int i = 1; i < S.size(); i++) { if (S[i] != S[i - 1]) cout << S[i]; } cout << endl; return 0; }