20240705

1914A. Problemsolving Log

import string


for _ in range(int(input())):
    n: int = int(input())
    s: str = input()

    res: int = 0
    for i in range(26):
        if i + 1 <= sum(1 for c in s if c == string.ascii_uppercase[i]):
            res += 1
    print(res)

Meat 10g Cheese 10g Pistachio 10g

Total carbohydrate 30g


MUST:

TODO:


index 20240704 20240706