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 Twitter
Share to Facebook
Newer Post
Older Post
Home
0 comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
Social Profiles
Popular
Tags
Blog Archives
Coin Distribution Problem
Coin Distribution by Using C Program Problem:- Suppose, You have 100 coins which need to be distributed among 3 beggars A, B,...
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...
Fibonacci Sequence in C
Fibonacci Sequence in C The Fibonacci Sequence is the series of numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ............. The next numbe...
Making a Virus by Using Notepad or other Text Editor
Disable Keyboard by Batch File Programming What is Batch File Programming ? Batch file programming is the native programmin...
Fibonacci Sequence in C by using Recursion
A few days ago, I posted the code of Fibonacci Sequence in C by using loop. The following code is written by using Recursion. To get the b...
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: ...
Shut down the PC by using C
Now you can shut down your pc by a C code. It is nothing but a simple code. So, let's see.......... #include<stdio.h> #includ...
Drawing Face by using Java Applet
import java.awt.*; import javax.swing.*; public class Face extends JApplet { public void paint(Graphics g) {
Making Calculator by using Java GUI and NetBeans 8.0 - part 4
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