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

why wrong answer of factorial ?

check my code at http://www.codechef.com/viewsolution/3266056 Of the problem http://www.codechef.com/problems/FCTRL2

View Article


password protection code

in output,it is telling invalid password even though i hav entered right password(helloINDIA).#include <stdio.h> #include<string.h> #include<conio.h> void main() { char...

View Article


Wrong answer in HelpingLira problem

http://www.codechef.com/viewsolution/3267094 please help!! thanks in advance

View Article

CNTDSETS - Editorial

PROBLEM LINK:PracticeContestAuthor:Mugurel Ionut AndreicaTester:MahbubEditorialist:Jingbo ShangDIFFICULTY:HardPREREQUISITES:Combination, Inclusion–exclusion principle, Euler's theoremPROBLEM:Find out...

View Article

ATOMS - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONFirst, say that two items x and y are "related" if there is no subset S _ i with one of x,y in S _ i but not the other. That is, x and y may appear...

View Article


BUY1GET1 - WA

It seems like an easy problem. But somehow, I am getting a WA. I can't seem to figure out why. Please have a look A description of my algorithm - Made two arrays A[26] and a[26] for storing the count...

View Article

REGARDING RATING

This user had participated in the JAN14 long contest, The graph below shows the increase in rating but it still remains zero in the upper right side of the profile.Is it because of the new rating...

View Article

AND - Editorial

Problem Link:PracticeContestDifficulty:SimplePre-requisites:Binary Notation, Binary AND operationProblem:You are given a sequence of N integer numbers A. Calculate the sum of A[i] AND A[j] for all the...

View Article


Problem of string in C lang.

its a program to copy a string in another string.the program is running properly but it is giving a wrong output for special characters. can u help me.???#include<stdio.h> #include<conio.h>...

View Article


HELPLIRA - Editorial

PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Jingbo ShangEditorialist:Ajay K. VermaDIFFICULTY:CAKEWALK PREREQUISITES:High school mathsPROBLEM:Given a set of triangles, find the indices of...

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
Browsing all 39796 articles
Browse latest View live


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