[yLOI2022] 签到题

Luogu
IDLGP9471
Time1000ms
Memory512MB
DifficultyP1
O2优化洛谷月赛
给定一个长度为 $8$ 的字符串 $s$,请你分别统计 $s$ 中大小写字母和数字字符的个数。 ## Input 输入只有一行一个长度为 $8$ 的字符串 $s$。 ## Output 输出一行三个整数,依次表示: - $s$ 中数字字符的个数。 - $s$ 中小写字母的个数。 - $s$ 中大写字母的个数。 [samples] ## Note ### 数据规模与约定 对 $100\%$ 的测试点,保证 $s$ 的长度为 $8$,仅含大小写字母和数字。 以下是各个测试点中各字符的存在性,√ 表示存在,× 表示不存在。 | 测试点编号 | 数字 | 小写字母 | 大写字母 | | :-: | :-: | :-: | :-: | | $1$ | √ | × |× | | $2$ | × | √ | × | | $3$ | × | × | √ | | $4$ | √ | √ |× | | $5$ | √ | × |√ | | $6$ | × | √ | √ | | $7$ | √ | √ | √ | | $8$ | √ | √ | √ | | $9$ | √ | √ | √ | | $10$ | √ | √ | √ |
Samples
Input #1
yLOI2022
Output #1
4 1 3
Input #2
IAKIOIOI
Output #2
0 0 8
Input #3
1n2s0e1s
Output #3
4 4 0
API Response (JSON)
{
  "problem": {
    "name": "[yLOI2022] 签到题",
    "description": {
      "content": "给定一个长度为 $8$ 的字符串 $s$,请你分别统计 $s$ 中大小写字母和数字字符的个数。",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 524288
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGP9471"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "给定一个长度为 $8$ 的字符串 $s$,请你分别统计 $s$ 中大小写字母和数字字符的个数。\n\n## Input\n\n输入只有一行一个长度为 $8$ 的字符串 $s$。\n\n## Output\n\n输出一行三个整数,依次表示:\n\n- $s$ 中数字字符的个数。\n- $s$ 中小写字母的个数。\n- $s$ 中大写字母的个数。\n\n[samples]\n\n## Note\n\n### 数据规模与约定\n\n对 $10...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments