题目
1129 - 简单a*b
题目描述
按照 a*b=
的格式输入算式,通过计算输出 a*b
的结果。
输入
输入中包括一个表达式,如:a*b=
,
a
a
a 和
b
b
b 都是
i
n
t
int
int 类型的正整数。
输出
结果只有一个正整数,整数在 l o n g l o n g long \ long long long 范围内。
样例
输入
100*200=
输出
20000
来源
字符串
标签
字符串
解释
水题,只要输入一个 i n t int int类型的 a a a,一个 c h a r char char类型的 b b b,一个 i n t int int类型的 c c c,一个 c h a r char char类型的 d d d,输出 a ∗ c a*c a∗c就可以 a c ac ac了。
AC代码
#include<bits/stdc++.h>//万能头
using namespace std;//命名空间
int main() {//主函数
int a,c;//a,c=两个乘数
char b,d;//b,d= * , =
long long sum;//sum=积
cin>>a>>b>>c>>d;//输入
sum=a*c;
cout<<sum;//输出积
return 0;//结束
}
推荐
麻烦关注一下洛谷zjx331(uid=780983),谢谢。水一点字数:
『时空无垠地延长』
—
T
i
m
e
a
n
d
s
p
a
c
e
e
x
t
e
n
d
e
n
d
l
e
s
s
l
y
—
\color{#2CA9E1}\mathsf{『时空无垠地延长』}\\\scriptsize\mathsf{— \ Time \ and \ space \ extend \ endlessly \ —}
『时空无垠地延长』— Time and space extend endlessly —
『维度被悄悄埋葬』 — D i m e n s i o n s a r e q u i e t l y b u r i e d — \color{#2CA9E1}\mathsf{『维度被悄悄埋葬』}\\\scriptsize\mathsf{—\ Dimensions \ are \ quietly \ buried—} 『维度被悄悄埋葬』— Dimensions are quietly buried—
『歌者在星空的边缘吟唱』 — T h e s i n g e r c h a n t e d a t t h e e d g e o f t h e s t a r r y s k y — \color{#2CA9E1}\mathsf{『歌者在星空的边缘吟唱』}\\\scriptsize\mathsf{— \ The \ singer \ chanted \ at \ the \ edge \ of \ the \ starry \ sky—} 『歌者在星空的边缘吟唱』— The singer chanted at the edge of the starry sky—
『永恒的毁灭乐章』 — E t e r n a l m u s i c o f d e s t r u c t i o n — \color{#2CA9E1}\mathsf{『永恒的毁灭乐章』}\\\scriptsize\mathsf{— \ Eternal \ music \ of \ destruction—} 『永恒的毁灭乐章』— Eternal music of destruction—
『在文明挣扎万年的地方』 — I n a p l a c e w h e r e c i v i l i z a t i o n h a s s t r u g g l e d f o r t h o u s a n d s o f y e a r s — \color{#2CA9E1}\mathsf{『在文明挣扎万年的地方』}\\\scriptsize\mathsf{—\ In \ a \ place \ where \ civilization \ has \ struggled \ for \ thousands \ of \ years—} 『在文明挣扎万年的地方』— In a place where civilization has struggled for thousands of years—
『三颗恒星布撒不恒定的光』 — T h r e e s t a r s c a s t n o n − c o n s t a n t l i g h t — \color{#2CA9E1}\mathsf{『三颗恒星布撒不恒定的光』}\\\scriptsize\mathsf{—\ Three \ stars \ cast \ non-constant \ light—} 『三颗恒星布撒不恒定的光』— Three stars cast non−constant light—
『乐土般的天堂』 — P a r a d i s e — \color{#2CA9E1}\mathsf{『乐土般的天堂』}\\\scriptsize\mathsf{—\ Paradise—} 『乐土般的天堂』— Paradise—
『卑微的虫子企图染指神之权杖』 — T h e l o w l y b u g s a t t e m p t t o i n f e c t t h e s c e p t e r o f G o d — \color{#2CA9E1}\mathsf{『卑微的虫子企图染指神之权杖』}\\\scriptsize\mathsf{—\ The \ lowly \ bugs \ attempt \ to \ infect \ the \ scepter \ of \ God—} 『卑微的虫子企图染指神之权杖』— The lowly bugs attempt to infect the scepter of God—
『天真的孩子手握烛棒』 — N a ı ¨ v e c h i l d r e n h o l d c a n d l e s t i c k s i n t h e i r h a n d s — \color{#2CA9E1}\mathsf{『天真的孩子手握烛棒』}\\\scriptsize\mathsf{—\ Naïve \ children \ hold \ candlesticks \ in \ their\ hands—} 『天真的孩子手握烛棒』— Naı¨ve children hold candlesticks in their hands—
『黑暗森林中的穿行』 — W a l k t h r o u g h t h e d a r k f o r e s t — \color{#2CA9E1}\mathsf{『黑暗森林中的穿行』}\\\scriptsize\mathsf{—\ Walk \ through \ the \ dark \ forest—} 『黑暗森林中的穿行』— Walk through the dark forest—
『满眼皆是骸骨与伤』 — E y e s f u l l o f s k e l e t o n s a n d w o u n d s — \color{#2CA9E1}\mathsf{『满眼皆是骸骨与伤』}\\\scriptsize\mathsf{—\ Eyes \ full \ of \ skeletons \ and \ wounds—} 『满眼皆是骸骨与伤』— Eyes full of skeletons and wounds—
『熄灭的火光蔓延着恐惧与凄凉』 — T h e e x t i n g u i s h e d f l a m e s p r e a d f e a r a n d d e s o l a t i o n — \color{#2CA9E1}\mathsf{『熄灭的火光蔓延着恐惧与凄凉』}\\\scriptsize\mathsf{—\ The \ extinguished \ flame \ spread \ fear \ and \ desolation—} 『熄灭的火光蔓延着恐惧与凄凉』— The extinguished flame spread fear and desolation—
『童话的世界被绘进画里』 — T h e w o r l d o f f a i r y t a l e s i s p a i n t e d i n t h e p a i n t i n g — \color{#E4671E}\mathsf{『童话的世界被绘进画里』}\\\scriptsize\mathsf{—\ The \ world \ of \ fairy \ tales \ is \ painted \ in \ the \ painting—} 『童话的世界被绘进画里』— The world of fairy tales is painted in the painting—
『被迫远走的游子在时间之外流浪』 — T h e w a n d e r e r , f o r c e d t o g o a w a y , w a n d e r s o u t s i d e o f t i m e — \color{#E4671E}\mathsf{『被迫远走的游子在时间之外流浪』}\\\scriptsize\mathsf{—\ The \ wanderer\ , \ forced \ to \ go \ away\ , \ wanders \ outside \ of \ time—} 『被迫远走的游子在时间之外流浪』— The wanderer , forced to go away , wanders outside of time—
『在无尽的星河浩渺里』 — I n t h e v a s t n e s s o f t h e e n d l e s s g a l a x y — \color{#E4671E}\mathsf{『在无尽的星河浩渺里』}\\\scriptsize\mathsf{—\ In \ the \ vastness \ of \ the \ endless \ galaxy—} 『在无尽的星河浩渺里』— In the vastness of the endless galaxy—
『孤独迷航』 — L o n e l y T r e k — \color{#E4671E}\mathsf{『孤独迷航』}\\\scriptsize\mathsf{—\ Lonely \ Trek—} 『孤独迷航』— Lonely Trek—
『人类的墓碑』 — M a n ′ s t o m b s t o n e — \color{#E4671E}\mathsf{『人类的墓碑』}\\\scriptsize\mathsf{—\ Man's \ tombstone—} 『人类的墓碑』— Man′s tombstone—
『被印拓在宇宙最低的地方』 — I t i s i n t h e l o w e s t p l a c e i n t h e u n i v e r s e — \color{#E4671E}\mathsf{『被印拓在宇宙最低的地方』}\\\scriptsize\mathsf{—\ It \ is \ in \ the \ lowest \ place \ in\ the \ universe—} 『被印拓在宇宙最低的地方』— It is in the lowest place in the universe—
『永远尘封的文明』 — A c i v i l i z a t i o n t h a t w i l l a l w a y s b e d u s t y — \color{#E4671E}\mathsf{『永远尘封的文明』}\\\scriptsize\mathsf{—\ A \ civilization \ that \ will \ always \ be \ dusty—} 『永远尘封的文明』— A civilization that will always be dusty—
『陪葬着二维的太阳』 — B u r i e d w i t h t h e t w o − d i m e n s i o n a l s u n — \color{#E4671E}\mathsf{『陪葬着二维的太阳』}\\\scriptsize\mathsf{—\ Buried \ with \ the \ two-\ dimensional \ sun—} 『陪葬着二维的太阳』— Buried with the two− dimensional sun—
『正在死去的宇宙』 — T h e u n i v e r s e t h a t i s d y i n g — \color{#E4671E}\mathsf{『正在死去的宇宙』}\\\scriptsize\mathsf{—\ The \ universe \ that \ is \ dying—} 『正在死去的宇宙』— The universe that is dying—
『归零重生的希望』 — T h e h o p e o f z e r o r e b i r t h — \color{#E4671E}\mathsf{『归零重生的希望』}\\\scriptsize\mathsf{—\ The \ hope \ of \ zero \ rebirth—} 『归零重生的希望』— The hope of zero rebirth—
『散逸的死线曲率的逃亡』 — T h e e s c a p e o f t h e l o o s e d e a d − l i n e c u r v a t u r e — \color{#E4671E}\mathsf{『散逸的死线曲率的逃亡』}\\\scriptsize\mathsf{—\ The \ escape \ of \ the \ loose \ dead-line \ curvature—} 『散逸的死线曲率的逃亡』— The escape of the loose dead−line curvature—
『宇宙之外的宇宙人性却悄然绽放』 — T h e h u m a n i t y o f t h e u n i v e r s e o u t s i d e t h e u n i v e r s e h a s q u i e t l y b l o s s o m e d — \color{#E4671E}\mathsf{『宇宙之外的宇宙人性却悄然绽放』}\\\scriptsize\mathsf{—\ The \ humanity \ of \ the \ universe \ outside \ the \ universe \ has \ quietly \ blossomed—} 『宇宙之外的宇宙人性却悄然绽放』— The humanity of the universe outside the universe has quietly blossomed—
『当时间消融了一切印记』 — W h e n t i m e d i s s o l v e s a l l i m p r i n t s — \color{#E4671E}\mathsf{『当时间消融了一切印记』}\\\scriptsize\mathsf{—\ When \ time \ dissolves \ all \ imprints—} 『当时间消融了一切印记』— When time dissolves all imprints—
『爱情却横跨了亿万年的离殇』 — L o v e s p a n s h u n d r e d s o f m i l l i o n s o f y e a r s o f d e a t h — \color{#E4671E}\mathsf{『爱情却横跨了亿万年的离殇』}\\\scriptsize\mathsf{—\ Love \ spans \ hundreds \ of \ millions \ of \ years \ of \ death—} 『爱情却横跨了亿万年的离殇』— Love spans hundreds of millions of years of death—
——《三体》 \normalsize{\color{red}{\ \ \ \\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ——《三体》}} ——《三体》