結果

問題 No.1469 programing
ユーザー harurunharurun
提出日時 2021-04-09 19:42:00
言語 Bash
(Bash 5.1.16)
結果
TLE  
実行時間 -
コード長 126 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 8,112 KB
最終ジャッジ日時 2023-09-07 07:49:01
合計ジャッジ時間 11,432 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
8,112 KB
testcase_01 AC 6 ms
6,848 KB
testcase_02 AC 6 ms
4,376 KB
testcase_03 AC 8 ms
4,380 KB
testcase_04 AC 18 ms
4,376 KB
testcase_05 AC 41 ms
4,376 KB
testcase_06 AC 22 ms
4,380 KB
testcase_07 AC 39 ms
4,376 KB
testcase_08 AC 1,669 ms
4,380 KB
testcase_09 AC 2,251 ms
4,380 KB
testcase_10 AC 2,087 ms
4,376 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

read s
a=${s:0:1}
echo -n $a
echo $s | fold -w 1 | while read c; do
  if [ $a != $c ]; then
    echo -n $c
  fi
  a=$c  
done
0