結果

問題 No.1469 programing
ユーザー 👑 obakyan
提出日時 2021-04-14 00:01:12
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 520 ms / 3,000 ms
コード長 184 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 44,956 KB
最終ジャッジ日時 2024-06-30 02:49:23
合計ジャッジ時間 1,725 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

a = io.read()
t = {}
for i = 1, #a - 1 do
  if a:sub(i, i) ~= a:sub(i + 1, i + 1) then
    table.insert(t, a:sub(i, i))
  end
end
table.insert(t, a:sub(#a, #a))
print(table.concat(t))
0