#K. [愚人节 2026 K] 鸡蛋胡萝卜计数

    传统题 1000ms 256MiB

[愚人节 2026 K] 鸡蛋胡萝卜计数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

xx 组物品 ss,每个物品含有 yy 单位物质 X,那么一共有多少单位的物质 X?

Format

Input

一行两个非负整数 x,yx,y 和一个字符串 ss

Output

一行一个非负整数,即答案。

Samples

0 0 egg
0

Limitation

0x,y100\le x,y\le 10s{egg,carrot}s\in\{\tt egg,carrot\}

[CZR-(-002)] CZOJ 2026 愚人节比赛

未参加
状态
已结束
规则
IOI
题目
13
开始于
2026-3-20 20:00
结束于
2026-4-6 19:00
持续时间
407 小时
主持人
参赛人数
50