Solve of URI 1003 (Simple Sum) in C & C++
Problem Description of URI Online Judge 1003:
Problem name: Simple Sum.
Problem level: 1.
Problem category: Beginner.
Points: 1.2 points
Base time limit: 1 second.
Memory limit: 200 MB.
Problem subject: Sequential.
Problem adapted by: Neilor Tonin (Brazil).
Link: https://www.urionlinejudge.com.br/judge/en/problems/view/1003
Solution language: C & C++
My profile: https://www.urionlinejudge.com.br/judge/en/profile/38770
Solution of URI 1003 in C:
//URI online Judge 1003 solution in C
//This solution is made and uploaded by Mehedi Hasan Kajol
#include<stdio.h>
int main(void){
int a , b;
long int sum;
sum = a + b;
printf("SOMA = %ld\n", sum);
return 0;
}
#include<stdio.h>
int main(void){
int a , b;
long int sum;
sum = a + b;
printf("SOMA = %ld\n", sum);
return 0;
}
Solution of URI 1003 in C++:
//URI online Judge 1003 solution in C++
//This solution is made and uploaded by Mehedi Hasan Kajol
#include<iostream>
using namespace std;
int main(void){
int a , b;
long int sum;
cin >> a >> b;
sum = a + b;
cout << "SOMA = " << sum << endl;
return 0;
}
#include<iostream>
using namespace std;
int main(void){
int a , b;
long int sum;
cin >> a >> b;
sum = a + b;
cout << "SOMA = " << sum << endl;
return 0;
}