HUST Online Judge WebBoard
[ New Thread ]
Problem 1035 >> A*B 问题
1025 @ 2018-05-23 15:14:16
[ Quote ] [ Edit ] [ Delete ] 1#
题目描述
输入两个正整数 A 和 B,求 A*B 的值。注意乘积的范围和数据类型的选择。
输入
一行,包含两个正整数 A 和 B,中间用单个空格隔开。1 <= A,B <= 50000。
输出
一个整数,即 A*B 的值。
样例输入
3 4
样例输出
12
答案:
#include<iostream>
using namespace std;
int main()
{
long long a,b;
cin>>a>>b;
cout<<a*b;
}
1025 @ 2018-05-23 15:16:22
[ Quote ] [ Edit ] [ Delete ] 2#
#include<iostream>
using namespace std;
int main()
{
long long a,b;
cin>>a>>b;
cout<<a b;//空处可填+,-,*,/,%
}
zjcd1806 @ 2018-07-10 15:22:32
[ Quote ] [ Edit ] [ Delete ] 3#
那Pascal 呢
2019zjhs06 @ 2018-12-24 16:38:43
[ Quote ] [ Edit ] [ Delete ] 4#
var a,b,c:int64;
begin
c:=a*b;
writeln(c);
end.
hsxxbianjinchen @ 2019-06-16 16:04:24
[ Quote ] [ Edit ] [ Delete ] 5#
http://begin.nbdp.net/oj/userinfo.php?user=2019zjhs06
ywldgcc @ 2019-07-27 08:44:16
[ Quote ] [ Edit ] [ Delete ] 6#
char c;

20160413 @ 2021-07-08 19:50:15
[ Quote ] [ Edit ] [ Delete ] 7#
jksfkds fudsbfk gu fukfuyagufgsifgdiufgfkuhfeifq
20160413 @ 2021-07-08 19:50:49
[ Quote ] [ Edit ] [ Delete ] 8#
dhfkalwithfbfu whjdasjdu sahkwihdkasbfasjflsaoff sahfuaofiwhfahfuashfioashf hevgbkafas[oi[aos;cxlzkvjqwopfsajfisjifuiaehfewk n dsf d asdfsf sd fs dgds gfd gf gsd g d g fd f d dg gn yu ip o knfcxw zwxecrvtyujikolp;;lkjhygtfdsdf j i k g g v v v vv v vv v v c c x xc v jkkmbrd hjgf v j
2020zjdl42 @ 2021-07-10 09:45:31
[ Quote ] [ Edit ] [ Delete ] 9#
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,s=0;
long long a[100001];
cin>>n;
for(int i=1;i<=n;i++){
cin>>a[i];
if(a[i]%4==0 and a[i])
}
}
2021zjhs39 @ 2021-07-10 09:48:39
[ Quote ] [ Edit ] [ Delete ] 10#
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,x,s=0;
cin>>n;
for(int i=1;i<=n;i++){
cin>>x;
if(x%4==0||x%7==0){
s++;
}
}
cout<<s;
return 0;
}
2021zjhs39 @ 2021-07-10 09:48:55
[ Quote ] [ Edit ] [ Delete ] 11#
答案
[Top] [Previous Page] [Next Page]