結果

問題 No.1469 programing
ユーザー harurunharurun
提出日時 2021-04-03 17:18:33
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 715 ms / 3,000 ms
コード長 257 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 5,484 KB
実行使用メモリ 151,488 KB
最終ジャッジ日時 2023-08-26 09:02:17
合計ジャッジ時間 5,075 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
42,184 KB
testcase_01 AC 74 ms
42,232 KB
testcase_02 AC 75 ms
42,240 KB
testcase_03 AC 77 ms
42,368 KB
testcase_04 AC 78 ms
42,288 KB
testcase_05 AC 77 ms
42,444 KB
testcase_06 AC 77 ms
42,148 KB
testcase_07 AC 78 ms
42,184 KB
testcase_08 AC 165 ms
49,592 KB
testcase_09 AC 114 ms
51,692 KB
testcase_10 AC 112 ms
50,904 KB
testcase_11 AC 148 ms
61,480 KB
testcase_12 AC 123 ms
53,932 KB
testcase_13 AC 77 ms
42,284 KB
testcase_14 AC 156 ms
61,232 KB
testcase_15 AC 126 ms
53,440 KB
testcase_16 AC 161 ms
61,416 KB
testcase_17 AC 715 ms
151,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function main(input){
 var S = input.split("\n")[0]; 
  var ans=S[0];
  var a=S[0];
  for(i=1;i<S.length;i++){
    if(S[i]!=a){
      ans+=S[i];
    }
    a=S[i];
  }
  console.log(ans);
  return;
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
0