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 ArticleHow 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 ArticleWrite 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 ArticleSame 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 Articlelooking 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 ArticleThe 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 ArticleHow 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 ArticleFinding 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 Articlequestions related to SCC!!
hey plzz guys can u give some questions related to strongly connected components
View Articlewa in lebombs
http://www.codechef.com/viewsolution/3269534 ran many test cases gave correct answer but showing wa
View Articlewa in Lebombs
http://www.codechef.com/viewsolution/3269534 ran many test cases gave correct answer but showing wa
View Articlechef 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 Articlewrong 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 ArticleATM : 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 ArticleGetting 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 ArticleSubtraction 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 ArticleGetting 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 ArticleORDERAAM - 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 ArticleCAKE1AM - Editorial
PROBLEM LINKSContestPracticeAuthor: Abdullah Al MahmudTester: Gerald AgapovEditorialist: Praveen Reddy VakaDIFFICULTY:cakewalkPREREQUISITES:Basic Coordinate GeometryEXPLANATIONRestated in simple terms...
View Article