View Code of Problem 3855

#include<stdio.h>
#include<cmath>
#include<cstdlib>
#include<algorithm>
#include<iostream>
#include<cstring>
using namespace std;
typedef long long ll;
int main(){
    ll a,b;
    int t;
    char ch;
    scanf("%d",&t);
    getchar();
    while(t--){
    	scanf("%lld%c%lld",&a,&ch,&b);
    	if(ch=='+') printf("%lld\n",a+b);
    	else  printf("%lld\n",a-b);
	}
    	
	return 0; 
} 

Double click to view unformatted code.


Back to problem 3855