import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); int d=sc.nextInt(); System.out.println((long)a*d+(long)b*c); } }
0.0分
2 人评分
Hello, world! (C语言代码)浏览:1201 |
C语言程序设计教程(第三版)课后习题8.6 (C语言代码)浏览:538 |
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:690 |
字符串对比 (C语言代码)浏览:1413 |
兰顿蚂蚁 (C++代码)浏览:1045 |
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:644 |
【简单计算】 (C语言代码)浏览:622 |
C语言程序设计教程(第三版)课后习题6.3 (C语言代码)浏览:660 |
哥德巴赫曾猜测 (C语言代码)浏览:2344 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:784 |
一枚渣子 2022-10-15 20:07:30 |
两个int类型的数相乘 很容易就超出界限了。要用更大范围的long整型接收乘积。