結果
問題 | No.436 ccw |
ユーザー |
👑 |
提出日時 | 2019-03-29 19:38:59 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 157 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 6,692 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-07 01:23:06 |
合計ジャッジ時間 | 1,221 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 24 |
ソースコード
s = io.read()n = string.len(s)p = 0for i = 1, n doa = string.sub(s, i, i)if(a == "w") then p = i break endendprint(math.min(p - 2, n + 1 - p))