結果

問題 No.1469 programing
ユーザー Yasu829Yasu829
提出日時 2021-04-18 01:14:02
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 126 ms / 3,000 ms
コード長 1,890 bytes
コンパイル時間 1,984 ms
コンパイル使用メモリ 185,408 KB
実行使用メモリ 11,092 KB
最終ジャッジ日時 2023-09-17 07:30:07
合計ジャッジ時間 3,250 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,384 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 5 ms
4,380 KB
testcase_09 AC 6 ms
4,376 KB
testcase_10 AC 6 ms
4,376 KB
testcase_11 AC 9 ms
4,384 KB
testcase_12 AC 7 ms
4,380 KB
testcase_13 AC 1 ms
4,384 KB
testcase_14 AC 11 ms
4,380 KB
testcase_15 AC 10 ms
4,380 KB
testcase_16 AC 15 ms
4,380 KB
testcase_17 AC 126 ms
11,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* Basic Inclusion */
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
/* definition */
#define atrep(v, value) for (auto v : (value))
#define rep(i, N) for (ll i = 0; i < (ll)(N); i++)
#define repp(i, N) for (ll i = 1; i <= (ll)(N); i++)
#define per(i, N) for (ll i = (ll)(N)-1; i >= 0; i--)
#define pper(i, N) for (ll i = (ll)(N); i > 0; i--)
#define pub(n) push_back(n)
#define pob(n) pop_back(n)
#define all(v) (v).begin(), (v).end()
#define grsort(v) sort((v).begin, (v).end, greater<>())
#define setpre(i) cout << fixed << setprecision((ll)(i))
/* I am lazy XD */
#define co(ans) cout << (ans)
#define out(ans) << (ans)
#define margin << " "
#define fin << endl
#define enter cout << endl
/* Common */
#define ll long long
#define dd double
#define cc char
#define ss string
ll cin_long_long(){ ll value; cin >> value; return value; }
dd cin_double(){ dd value; cin >> value; return value; }
cc cin_char(){ cc value; cin >> value; return value; }
ss cin_string(){ ss value; cin >> value; return value; }
#define cinl cin_long_long()
#define cind cin_double()
#define cinc cin_char()
#define cins cin_string()
#define inf 9223372036854775807
#define minf -9223372036854775807
#define pi 3.1415926535897932384626433832795028
ll bit(ll N){ return (1 << N); }
#define bpop(n) __builtin_popcount(n);
/* template functions */
ll ctol(char c){
   switch (c){
   case '1': return 1; break;
   case '2': return 2; break;
   case '3': return 3; break;
   case '4': return 4; break;
   case '5': return 5; break;
   case '6': return 6; break;
   case '7': return 7; break;
   case '8': return 8; break;
   case '9': return 9; break;
   case '0': return 0; break;
   default: return 0; break;
   }
}
/* main */
int main(void){
   ss S = cins;
   cc previous = 0;
   rep(i,S.size()){
      if(S[i] != previous) cout << S[i];
      previous = S[i];
   }
   enter;
}
// /* fin */
0