結果

問題 No.2201 p@$$w0rd
ユーザー とりゐとりゐ
提出日時 2023-02-03 21:40:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 60,032 KB
最終ジャッジ日時 2024-07-02 19:29:53
合計ジャッジ時間 2,570 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
ok=set()
for bit in range(1<<8):
  t=''
  for i in range(8):
    if (bit>>i)&1:
      if s[i] in 'lo':
        t+='1'
      elif s[i] in 'as':
        t+='2'
      else:
        t+='3'
    else:
      t+='3'
  if '1' in t and '2' in t and '3' in t:
    ok.add(t)

print(len(ok))
0