mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
14 lines
290 B
C++
14 lines
290 B
C++
|
#include<stdio.h>
|
||
|
int main()
|
||
|
{
|
||
|
int a,b,ans;
|
||
|
while(scanf("%d%d",&a,&b),a!=-1|| b!=-1)
|
||
|
{
|
||
|
ans=0;
|
||
|
if(a==1 || b==1) ans=1;
|
||
|
if(ans) printf("%d+%d=%d\n",a,b,a+b);
|
||
|
else printf("%d+%d!=%d\n",a,b,a+b);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|