結果

問題 No.2201 p@$$w0rd
ユーザー とりゐとりゐ
提出日時 2023-02-03 21:40:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 86,828 KB
実行使用メモリ 76,648 KB
最終ジャッジ日時 2023-09-15 17:19:34
合計ジャッジ時間 3,201 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
76,168 KB
testcase_01 AC 78 ms
76,484 KB
testcase_02 AC 77 ms
76,336 KB
testcase_03 AC 84 ms
76,296 KB
testcase_04 AC 84 ms
76,320 KB
testcase_05 AC 78 ms
76,316 KB
testcase_06 AC 78 ms
76,288 KB
testcase_07 AC 78 ms
76,488 KB
testcase_08 AC 78 ms
76,292 KB
testcase_09 AC 79 ms
76,208 KB
testcase_10 AC 79 ms
76,648 KB
testcase_11 AC 80 ms
76,420 KB
testcase_12 AC 79 ms
76,424 KB
testcase_13 AC 80 ms
76,600 KB
testcase_14 AC 80 ms
76,232 KB
testcase_15 AC 77 ms
76,332 KB
testcase_16 AC 77 ms
76,496 KB
testcase_17 AC 78 ms
76,432 KB
testcase_18 AC 79 ms
76,392 KB
testcase_19 AC 80 ms
76,328 KB
testcase_20 AC 79 ms
76,288 KB
testcase_21 AC 81 ms
76,340 KB
testcase_22 AC 77 ms
76,440 KB
testcase_23 AC 79 ms
76,336 KB
権限があれば一括ダウンロードができます

ソースコード

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