码迷,mamicode.com
首页 > Windows程序 > 详细

AcWing 605 简单乘积

时间:2020-05-10 20:56:00      阅读:65      评论:0      收藏:0      [点我收藏+]

标签:href   print   计算   题解   space   输入格式   cti   绝对值   str   

AcWing 605 简单乘积

镜像1 http://suo.im/6lq36T
镜像2 http://suo.im/5JOX0d
镜像3 http://suo.im/6d9DO5

打卡链接
原题链接
提交记录

题面

读取两个整数值。
在此之后,计算它们的乘积并将结果存储在名为PROD的变量中。
输出结果如下例所示。

输入格式

共两行,每行包含一个整数。

输出格式

输出格式为“PROD = X”,其中X为乘积结果。
数据范围
输入的两个整数的绝对值均不超过\(10000\)

Input
    3
    9
Output
    PROD = 27

题解

In C++/C

#include <iostream>
#include <math.h>
using namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    cout<<"PROD="<<a*b<<endl;
    return 0;
}

In Python 2

a = input()
b = input()
print "PROD=",a*b

AcWing 605 简单乘积

标签:href   print   计算   题解   space   输入格式   cti   绝对值   str   

原文地址:https://www.cnblogs.com/sweepy/p/acwing605.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!