Category: Problem Solution

16
Feb
2015

uva 11172 – Relational Operator

#include<stdio.h> int main() { int i,t,a,b; scanf(“%d”,&t); for(i=0;i<t;i++){ scanf(“%d %d”,&a,&b); if(a<b) printf(“<\n”); else if(a>b) printf(“>\n”); else printf(“=\n”);…

11
Feb
2015

URI Online Judge Solution | 1037 Interval

Here is a link http://www.mathsisfun.com/sets/intervals.html Check there about the interval notation section… Interval Notation In “Interval Notation”…

10
Feb
2015

URI Online Judge Solution| 1036 Bhaskara’s Formula

An equation ax2 + bx + c = 0 where a,b and c are any number  and…

10
Feb
2015

URI Online Judge Solution | 1035 Selection Test 1

Hints: Don’t forget to think that A is even so we have to use a%2==0 that’s it…

21
Jan
2015

URI Online Judge Solution | 1020 Age in Days

Solution: Just think simple if we take age input then if we want year then we have…

19
Jan
2015

URI Online Judge Solution| 1019 Time Conversion

Input format=integer Output format=hours:minutes:seconds Solution: 1 minute =60 second 1hour = 60minute 1min = 60 second 60…