結果
| 問題 |
No.2201 p@$$w0rd
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-02-06 22:49:41 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 311 bytes |
| コンパイル時間 | 124 ms |
| コンパイル使用メモリ | 6,816 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-05 00:29:13 |
| 合計ジャッジ時間 | 1,121 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 WA * 3 |
ソースコード
s = io.read()
other, lo, as = 0, 0, 0
for i = 1, 8 do
b = s:sub(i, i)
if b == "l" or b == "o" then
lo = lo + 1
elseif b == "a" or b == "s" then
as = as + 1
else
other = other + 1
end
end
local v = (bit.lshift(1, lo) - 1) * (bit.lshift(1, as) - 1)
if other == 0 then v = v - 1 end
print(v)