Showing posts with label URI. Show all posts
Showing posts with label URI. Show all posts

Friday, 20 November 2015

URI Online Judge | 1759 Ho Ho Ho_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://www.urionlinejudge.com.br/judge/en/problems/view/1759
*/
#include<iostream>
using namespace std;
int main(){
 int n;
        cin >> n;
  for(int i=0;i<n-1;i++){
  cout << "Ho ";
 }
  cout << "Ho!" << endl;
 return 0;

}

Saturday, 19 September 2015

URI Online Judge | 1078 Multiplication Table_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://www.urionlinejudge.com.br/judge/en/problems/view/1078
*/

#include<iostream>
using namespace std;

int main(){
int n;
cin >> n;
for(int i=1; i<=10;i++){
cout << i << "X" << n << " = " << i*n << endl;
}

return 0;

}

URI Online Judge | 1017 Fuel Spent_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://www.urionlinejudge.com.br/judge/en/problems/view/1017
*/

#include<iostream>
#include<iomanip>
using namespace std;
 
int main(){
double X,Y,Z;
cin >> X >> Y;
Z= (X*Y)/12;
cout << fixed << setprecision(3) << Z << endl;
 
return 0;
 
}

URI Online Judge | 1016 Distance_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://www.urionlinejudge.com.br/judge/en/problems/view/1016
*/

#include
using namespace std;

int main(){
int x,y;
cin >> x;
y=(150/60)*x;
cout << y << " minutos" << endl;

return 0;
}

URI Online Judge | 1011 Sphere_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://www.urionlinejudge.com.br/judge/en/problems/view/1011
*/

#include<iostream>
#include<iomanip>
using namespace std;

int main(){
int r;
double x;
double pi = 3.14159;
cin >> r;
x= (4/3.0)*pi*r*r*r;
cout << fixed << setprecision(3) << "VOLUME = " << x << endl;

return 0;
}

Sunday, 28 June 2015

URI 1008-Salary_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://www.urionlinejudge.com.br/judge/en/problems/view/1008
*/


#include<iostream>
#include<iomanip>
using namespace std;

int main(){
int NUMBER,HOURS;
double AMOUNT;
cin >> NUMBER >> HOURS >> AMOUNT;
double SALARY = HOURS * AMOUNT;
cout << "NUMBER = " << NUMBER << endl;
cout << fixed <<setprecision(2) << "SALARY = U$ " << SALARY << endl;

return 0;
}

URI 1004-Simple Product_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://www.urionlinejudge.com.br/judge/en/problems/view/1004
*/

#include<iostream>
using namespace std;

int main(){
int A,B,PROD;
cin >> A >> B;
PROD=A*B;
cout << "PROD = " << PROD << endl;
return 0;
}

URI 1003-Simple Sum_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://www.urionlinejudge.com.br/judge/en/problems/view/1003
*/

#include <iostream>
using namespace std;
int main() {
int A, B, SOMA;
cin >> A >> B;
SOMA = A + B;
cout << "SOMA = " << SOMA << endl;
return 0;
}

URI 1002-Area of a Circle_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://www.urionlinejudge.com.br/judge/en/problems/view/1002
*/

#include <iostream>
#include <iomanip>
using namespace std;
 
int main() {
double A, p = 3.14159, R;
cin >> R;
A = p * R * R;
cout << fixed << setprecision(4);
cout << "A=" << A << endl;
 
return 0;
}

URI 1001-Extremely Basic_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://www.urionlinejudge.com.br/judge/en/problems/view/1001
*/
#include<iostream>
using namespace std;


int main(){
int A,B,X;
cin >> A >> B;
X=A+B;
cout << "X = " << X << endl;


return 0;


}