Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 40121 articles
Browse latest View live
↧

HELPLIRA - WA

guys sorry for bothering you, but i am tired of submitting my jerky code again and again: http://ideone.com/bnkjdY. i used area=height*base/2 approach, rather than what was taught on editorial. and i...

View Article


How to check answers online?

First of all sorry , if such questions are not allowed here and if such questions are allowed then please help me.I am trying to write a Java code which will take source file in C , C++ and Java and...

View Article


Image may be NSFW.
Clik here to view.

Write a c program

Ex 1. A restaurant’s Menu is divided into following sub-headings : 1) Starters 2) Soups 3) Main Course 4) Rice 5) Breads 6) Beverages 7) Deserts…etc. Write a user friendly menu driven program which has...

View Article

Same code in Java gives RE that gives AC in C++.

I was doing this question. I implemented the same codes in Java and C++. This java code gives RE while the same code when implemented in C++(here) gives AC. Why is this happening?

View Article

looking for the way to delete only one line of the command window.

Hi, I am looking for the way to delete only one line of the command window in C. If I use "system("cls");" it will delete all output from the file so I have to plot everything again.Thanks in advance.

View Article


The Lead game: Wrong Answer

I dont know what is wrong in the code.. Tried for many inputs. Runs fine on ideone. #include <iostream> #include<cmath> using namespace std; int main() { int t; int x1,y1,min=0,max=0,a;...

View Article

How I can improve at graphical problems?

I program in c++,java...please tell me some source.. or technique...like this one www.codechef.com/JAN14/problems/TOURBUS

View Article

Finding the difference between speed of c++ and java program?

Execution of time of c++ came out to be 0.01 sec and that of java came out to be 0.43 sec..Even with such difference in execution time how coders are successfully able to compete in programming...

View Article


questions related to SCC!!

hey plzz guys can u give some questions related to strongly connected components

View Article


wa in lebombs

http://www.codechef.com/viewsolution/3269534 ran many test cases gave correct answer but showing wa

View Article

wa in Lebombs

http://www.codechef.com/viewsolution/3269534 ran many test cases gave correct answer but showing wa

View Article

chef and feedback

#include<iostream> using namespace std; int main() { int t,count,i=0; char str[100005]; count=0; cin>>t; while(t--) { cin>>str; while(str[i]!=NULL) { if((str[i]=='0' &&...

View Article

wrong answer in RACELANE

I have tried all test cases i could think of but i am not able to find why it is giving wrong answer.please help.#include<iostream> using namespace std; int main() { int t,b,i,k; cin>>t;...

View Article


Cheating in CodeSprint 5?

Is this cheating...

View Article

ATM : C++ result showing wrong result

I have written following code for ATM problem. I dont understand why codechef is showing result as wrong answer? #include <iostream> #include <iomanip> using namespace std; int main() { int...

View Article


Getting WA in ATM, can someone help?

#include <stdio.h> #include <stdlib.h> int main() { int x; float y,z; scanf("%d %f",&x,&y); if((x<=2000) && (y<=2000)) { if(x>y) { printf("%.2f",y); return 0; }...

View Article

Subtraction Game Problem (Jan Cook-off)

What concept of game theory is used to solve this problem? I found total steps taken for each pair of numbers to become equal and then checked whether it was odd or even, however this method TLE'd.

View Article


Getting SIGSEGV in Dessert Wizard

I am getting SIGSEGV error in all my submissions for the problem: Dessert WizardCould someone kindly direct me to my mistake.My latest submission is:http://www.codechef.com/viewsolution/3276277Thanks...

View Article

ORDERAAM - Editorial

PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Abdullah Al MahmudEditorialist:Vinod ReddyDIFFICULTY:HARD. PREREQUISITES:Flow,GreedyPROBLEM:We are given orders of the form (Si,Di,Xi,Pi) where Si...

View Article

Image may be NSFW.
Clik here to view.

CAKE1AM - Editorial

PROBLEM LINKSContestPracticeAuthor: Abdullah Al MahmudTester: Gerald AgapovEditorialist: Praveen Reddy VakaDIFFICULTY:cakewalkPREREQUISITES:Basic Coordinate GeometryEXPLANATIONRestated in simple terms...

View Article
Browsing all 40121 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>