UVA Problem 1124 – Celebrity jeopardy Solution

UVA Problem 1124 – Celebrity jeopardy Solution:


Click here to go to this problem in uva Online Judge.

Solving Technique:

Another super easy problem. The instructions on the top are just to distract us or make us thinks it is a tough problem.

I have made a video tutorial ( English ) for this code. I will also upload a Bengali version soon.

Problem statement requires us to find the equation whose transformation into the desired answer requires the least effort. So the least effort for a celebrity is print the equation that was given.

So for this problem we just input a string and print it. That all.

Important:  Be sure to add or print a new line after each output. The outputs should match exactly because sometimes even a space character causes the answer to be marked as wrong answer.


Input:

Y = 3 
X=9

Output:

Y = 3 
X=9

Code:

/*
 * Author: Quickgrid ( Asif Ahmed )
 * Site: https://quickgrid.wordpress.com
 */
#include<stdio.h>
int main(){
    char s[128];
    while(gets(s)){
        puts(s);
    }
    return 0;
}
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s