C, C++, JAVA, HTML, CSS Tutorials, Codes, Ebooks and Software Download Zone
Ad
Home
Business
Internet
Market
Stock
Downloads
Dvd
Games
Software
Office
Parent Category
Child Category 1
Sub Child Category 1
Sub Child Category 2
Sub Child Category 3
Child Category 2
Child Category 3
Child Category 4
Featured
Health
Childcare
Doctors
Uncategorized
Thursday, March 21, 2013
Uva 11936 - The Lazy Lumberjacks, programing problem from Uva
Thursday, March 21, 2013
No comments
Problem ID - 11936,
Problem Name - The Lazy Lumberjacks
Problem Description is Here
#include <stdio.h>
int main()
{
int a, b, c, i, k, j, t;
while(scanf("%d", &t)==1)
{
for(i=0; i<t; i++)
{
scanf("%d %d %d", &a, &b, &c);
if(a+b>c && b+c>a && c+a>b)
printf("OK\n");
else
printf("Wrong!!\n");
}
}
return 0;
}
Email This
BlogThis!
Share to X
Share to Facebook
Newer Post
Older Post
Home
0 comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
Social Profiles
Popular
Tags
Blog Archives
Binary Search
Searching is very important in data structure. Here is the code of Binary Search....... #include <stdio.h> int main() { i...
Prime Numbers by Sieve Algorithm
Check whether the sum of all printed prime numbers are equal to the given input or not ? Sample Input: 5 Sample Output: ...
Conversion from Binary to Decimal
Sometimes we need to convert a binary number into decimal number. The following code will help to convert a number from binary to decimal...
Insertion Sort
Insertion Sort by using C Program #include<stdio.h> int main() { int i, j, s, temp, a[100]; printf("Enter total element...
Age Calculator by using C program
Assalamu Alaikum, how are you everyone ? Hope all are well. I'm back here again. Today I'm introducing a useful program. The task ...
Uva 10035 - Primary Arithmetic, so easy than other programing problem
Problem ID - 10035, Problem Name - Primary Arithmetic. Problem Description is Here #include<stdio.h> main() { unsigned ...
Making Pattern by C Program
****** ***** **** *** ** * ** *** **** ***** ****** 1 12 123 ...
Uva 11936 - The Lazy Lumberjacks, programing problem from Uva
Problem ID - 11936, Problem Name - The Lazy Lumberjacks Problem Description is Here #include <stdio.h> int main() ...
Drawing Face by using Java Applet
import java.awt.*; import javax.swing.*; public class Face extends JApplet { public void paint(Graphics g) {
Multiplication of Two Matrices (matrix) by C Program
Now multiplication of two matrices(matrix) is so easy if use a C program. It is very easy to write and understand. In this we use 2d arra...
Powered by
Blogger
.
Followers
Blog Archive
►
2015
(2)
►
April
(1)
►
March
(1)
►
2014
(5)
►
November
(5)
▼
2013
(26)
►
September
(3)
►
August
(5)
►
July
(7)
▼
March
(8)
Uva 11479 - Is this the easiest problem ?, program...
Uva 11936 - The Lazy Lumberjacks, programing probl...
Uva 10370 - Above Average, easy programing problem...
Uva 10035 - Primary Arithmetic, so easy than other...
Fibonacci Sequence in C
Uva 11172 - Relational Operators
Binary Search
Make a pattern of Pyramid by using C programming...
►
February
(3)
Blog Archive
►
2015
(2)
►
April
(1)
►
March
(1)
►
2014
(5)
►
November
(5)
▼
2013
(26)
►
September
(3)
►
August
(5)
►
July
(7)
▼
March
(8)
Uva 11479 - Is this the easiest problem ?, program...
Uva 11936 - The Lazy Lumberjacks, programing probl...
Uva 10370 - Above Average, easy programing problem...
Uva 10035 - Primary Arithmetic, so easy than other...
Fibonacci Sequence in C
Uva 11172 - Relational Operators
Binary Search
Make a pattern of Pyramid by using C programming...
►
February
(3)
0 comments:
Post a Comment