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

Guessing Game

This is my code in c++ for Guessing Game,plz help me as it gave wrong answer on codechef:-include<iostream>include<string.h>using namespace std; long int t,n,m; long int c; int rs1[100000];...

View Article


Image may be NSFW.
Clik here to view.

TWOCOMP - Editorial

PROBLEM LINK:PracticeContestAuthor:Sergey KulikTester:Shiplu HawladerEditorialist:Praveen DhinwaDIFFICULTY:HardPREREQUISITES:trees, max flow, bipartite graphs.PROBLEM:There is a country with N cities....

View Article


DIGJUMP cheating case

two solutions same in contest problem http://www.codechef.com/viewsolution/4083994http://www.codechef.com/viewsolution/4083993two solutions by two DIFFERENT USERS matching character by character and...

View Article

how to know failed test cases

Hello,I have submitted 3rd problem(FORGETPWD) in June long contest,It is not working got WA May i know for which test cases it failed Regards Samuel

View Article

DARTS - Editorial

PROBLEM LINK:PracticeContestAuthor: Istvan NagyTester:Shiplu HawladerEditorialist:Praveen DhinwaDIFFICULTY:CHALLENGE PREREQUISITES:expectation value, random strategies.PROBLEM:The problem is an...

View Article


FORGETPW, June challenge 2014; Ambiguous test case

(reference FORGETPW)In this problem, For a test case, 0000.000 its clear that the output is 0 bcoz its value =0.But how does the shortest representation for the test case '.' (decimal point) become 0....

View Article

WA in MAXPR...plz help

I'm getting WA in MAXPR repeatedly...Plz tell me where my algorithm is wrong...And for test cases it is giving WRONG ANSWER....Soln link:-- http://www.codechef.com/viewsolution/4107416Soln link in...

View Article

MAXPR - Editorial

PROBLEM LINK:PracticeContestAuthor:Sergey NaginTester:Shiplu HawladerEditorialist:Praveen DhinwaDIFFICULTY:EasyPREREQUISITES:dynamic programming, simple combinatorics.PROBLEM:Given an array A. You have...

View Article


DIGJUMP - Editorial

PROBLEM LINK:PracticeContestTester:Shiplu HawladerEditorialist:Praveen DhinwaDIFFICULTY:EasyPREREQUISITES:bfs, dijkstraPROBLEM:Given a string s of N. You have to go from start of the string(index 0) to...

View Article


GUESS - Editorial

PROBLEM LINK:PracticeContestAuthor:Lalit KunduTester:Shiplu HawladerEditorialist:Praveen DhinwaDIFFICULTY:SimplePREREQUISITES:ad hoc, simple combinatorics.PROBLEM:You are selecting two numbers x and y...

View Article

FUNC - Editorial

PROBLEM LINK:PracticeContestAuthor:Vivek HamirwasiaTester:Shiplu HawladerEditorialist:Praveen DhinwaDIFFICULTY:MediumPREREQUISITES:number theory, binary searchPROBLEM:You are given an array A. You are...

View Article

FORGETPW - Editorial

PROBLEM LINK:PracticeContestAuthor:Gedi ZhengTester:Shiplu HawladerEditorialist:Praveen DhinwaDIFFICULTY:Simple PREREQUISITES:processing of strings and arrays.PROBLEM:Given a string s, You have to...

View Article

which language to learn for making apps etc

i already have thorough knowledge of c++ but c++ is not that helpful in making apps so can anyone please guide me on which language to prefer which is commonly used for making apps . i know for making...

View Article


Even Odd Query

.......hjkhjkhjk

View Article

Is answering like this allowed ? Possible copying ?

April challenge 2014 marked the beginning of my Competitive programming journey.Since I am new to this - it took me quite a bit of time to figure out the CNPIIM code but finally when I did - my soln...

View Article


NZEC RUN TIME ERROR

MY program is compiling on my laptop at netbeans and giving me write answer But while i submitting same code at codechef it gives me runtimeNZEC ERRORHERE IS link: http://www.codechef.com/problems/FGFS...

View Article

cheating june 2014

have been previously banned by admin in MAY contest because i have been found by someone ragarding cheating case of only 2 questions.So i make a new account.I follow my collegemate Himesh Kumar...

View Article


Transform the Expression - WA

#include <stdio.h> #include <ctype.h> int main() { int t; scanf("%d", &t); while(t--) { char expression[400]; expression[0] = '\0'; scanf("%s", expression); char operatorStack[400];...

View Article

CNPIIM - Editorial

PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:Number Theory PROBLEM:Find number of 2X2 matrices such...

View Article

execution time doubt

how to calculate the time taken for a program to get compiled???

View Article
Browsing all 39796 articles
Browse latest View live