Wednesday, May 3, 2017

URI Solution 1585 Making Kites - Solution in C, C++ | Ad Hoc

URI Solution 1585 Making Kites - Solution in C, C++ | Ad Hoc

URI Online Judge Solution  1585 Making Kites | Ad Hoc
URI Main Problem Link - https://www.urionlinejudge.com.br/judge/en/problems/view/1585

Problem Name: URI Problem 1585 Making Kites
Problem Number : URI Problem 1585 Making KitesSolution
Online Judge : URI Online Judge Solution
Level: Ad Hoc
Solution Language : C plus plus

URI Solution 1585 Making Kites Code in CPP:

URI 1585 Making Kites Solution in C:


#include <stdio.h>
 
int main() {
 int i = 0, n, x, y;
 scanf("%i", &n);
 for (i = 0; i < n; ++i)
 {
  scanf("%i %i", &x, &y);  
  printf("%d cm2\n", (x * y)/2);
 }

    return 0;
}


URI 1585 Making Kites Solution in C:


#include <cstdio>
using namespace std;

int main()
{
 int n, x, y;
 scanf("%i", &n);
 for (int i = 0; i < n; ++i)
 {
  scanf("%i %i", &x, &y);  
  printf("%d cm2\n", (x * y)/2);
 }
 return 0;
}

No comments:
Write comments

To know more about the problem, give us your valuable commment. We'll try to help you. Thanks

All rights reserved ©2016 -URI ONLINE JUDGE SOLUTION | Developed by Maniruzzaman Akash

© 2016 URI ONLINE JUDGE SOLUTION. Developed by Maniruzzaman Akash | Distributed By Gooyaabi Templates
Powered by Blogger.