返回小组 开始 2026-03-29 16:00:00

云附测试

结束 2026-03-29 17:15:00
Contest is over.
当前 2026-04-18 03:19:49

D

include

using namespace std;

int main() {

int n;
cin >> n;

if (n == 0)
{
    cout << 0 << endl;
    return 0;
}

int sign = 1;
if (n < 0)
{
    sign = -1;
    n = -n;
}

int res = 1;
while (n > 0)
{
    res *= n % 10;
    n /= 10;
}

cout << res * sign << endl;
return 0;

}


TISHEN  •  19天前

比赛已结束。