看我没骗你吧 —— 这是一道你可以在 10 秒内完成的题:给定两个绝对值不超过 100 的整数 A 和 B,输出 A 乘以 B 的值。
输入格式:
输入在第一行给出两个整数 A 和 B(−100≤A,B≤100),数字间以空格分隔。
输出格式:
在一行中输出 A 乘以 B 的值。
输入样例:
-8 13
输出样例:
-104
#include<iostream>
#include<algorithm>
#include<vector>
#include<math.h>
#include <iomanip>
#include<map>
#include<set>
using namespace std;
int main()
{
int x, y;
cin >> x >> y;
cout << x * y << endl;
return 0;
}
本文介绍了一个简单的编程挑战,要求在10秒内计算并输出两个整数的乘积。通过使用C++标准输入输出流,快速读取两个整数并计算其乘积,展示了基本的编程技巧。
4834

被折叠的 条评论
为什么被折叠?



