結果

問題 No.2773 Wake up Record 1
ユーザー 👑 obakyan
提出日時 2024-08-04 20:58:41
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 9 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 7,076 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-08-04 20:58:43
合計ジャッジ時間 1,737 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

n = io.read("*n", "*l")
s = io.read()
t = {}
for i = 2, n do
  if s:sub(i, i) == "o" and s:sub(i - 1, i - 1) == "x" then
    table.insert(t, i)
  end
end
print(#t)
print(table.concat(t, " "))
0