結果

問題 No.1469 programing
ユーザー 👑 obakyanobakyan
提出日時 2021-04-14 00:01:12
言語 Lua
(LuaJit 2.1.1696795921)
結果
AC  
実行時間 635 ms / 3,000 ms
コード長 184 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 4,956 KB
実行使用メモリ 54,120 KB
最終ジャッジ日時 2023-09-12 14:47:23
合計ジャッジ時間 2,390 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 12 ms
4,568 KB
testcase_09 AC 18 ms
4,380 KB
testcase_10 AC 16 ms
4,380 KB
testcase_11 AC 39 ms
4,848 KB
testcase_12 AC 25 ms
4,844 KB
testcase_13 AC 1 ms
4,380 KB
testcase_14 AC 49 ms
7,528 KB
testcase_15 AC 31 ms
4,928 KB
testcase_16 AC 53 ms
5,656 KB
testcase_17 AC 635 ms
54,120 KB
権限があれば一括ダウンロードができます

ソースコード

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