結果

問題 No.1469 programing
ユーザー harurunharurun
提出日時 2021-04-03 19:12:27
言語 Bash
(Bash 5.1.16)
結果
TLE  
実行時間 -
コード長 134 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 7,084 KB
実行使用メモリ 8,384 KB
最終ジャッジ日時 2023-08-26 14:49:20
合計ジャッジ時間 5,941 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

read a
b=${#a}
d=${a:0:1}
echo -n $d
for((i=1;i<b;i++)); do
  c=${a:i:1} 
  if [ "$c" != "$d" ]; then echo -n $c; fi
  d=$c
done
echo
0