UVA 11878 - Homework Checker Shipu Ahamed - 01 Sep 2020 Problem PDFSolution:#include<cstdio> #include<cstring> #include<string> #include<cmath> #include<iostream> #include<cctype> #include<map> #include<stack> #include<cstdlib> #include <queue> #include <vector> #include<algorithm> #define ll long long #define sc scanf #define pf printf #define Pi 2*acos(0.0) using namespace std; int main() { int a,b,count=0; char sine,c[1000],no; while(sc("%d%c%d=%s",&a,&sine,&b,c)==4) { if(sine=='+') { if(a+b==atoi(c)) count++; } else if(sine=='-') { if(a-b==atoi(c)) count++; } } pf("%d\n",count); return 0; }https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11878/11878.cpp