WA for COINS
I've been trying to solve this simple dp problem but I'm getting WA. I can't find anything wrong with my code. Can anybody please help me out?Problem - http://www.codechef.com/problems/COINSmy...
View ArticleCOOLING:WA. CANT GET WHATS WRONG.
#include <iostream> #include <cstdlib> int compare (const void * a, const void * b) { return ( *(int*)a - *(int*)b ); } int main () { int num,i; int t; scanf("%d",&t); while(t--){...
View ArticleATM problem to slow?
int cash,balance; float saldo; scanf("%d",&cash); scanf("%d",&balance); if(cash%5!=0 || cash+0.5>balance){ printf("%d",balance); return 1; } else saldo=balance-cash-0.5;...
View ArticleKNIGHTS - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYMEDIUMEXPLANATIONIf we construct a graph where each vertex corresponds to a square of the chessboard, and an edge connects two squares if they cannot both hold...
View ArticleFRBSUM - Editorial
PROBLEM LINK:PracticeContestAuthor:Constantine SokolTester:MahbubEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Segment Tree, Binary Search, Persistent Segment Tree.PROBLEM:Given A[1..N], and...
View ArticleLAPIN - WA Help..!!
Here is the link to my solution for LAPIN : http://www.codechef.com/viewsolution/3276217 First I divided the char array into two halves then I sorted both and compare both for equality. But it is...
View ArticleIntroduction to Graphs: Definitions, Traversal, Depth-First Search
Hello @all,As I have mentioned on several posts here on forums, I am only now starting to learn graphs in a more educated, methodical and serious way, so, after I have studied DFS for few days and due...
View ArticleA small doubt in Binary indexed tree
Given an array, 1-D, how e have to kake the corresponding BIT for that? ex. if the array is 10 8 5 9 1 what will the BIT for this?
View ArticleCan I have multiple accounts on CodeChef?
Is having multiple accounts is against CodeChef's Code Of Conduct.
View ArticleHow to change my CodeChef user name
I want to change my CodeChef user name. Is there a feature available?
View ArticleA3 - "The Guessing Game" Editorial / Explanation
does anyone have any DEEPER notion about A3 - The Guessing Game: http://www.codechef.com/problems/A3 approach? thanx beforehand.edit: pls look below for explanation. and pls show your gratitude by...
View ArticlePython or C
Hi all, I am new to codechef and now i am getting deeply interested in solving codechef problems. The question that flutters my mind is that should i prefer python or C for solving. I want to know all...
View Articleinput in python
How can we input data in python like that of ideone. like i have input stored in file and i want to give whole input at once through stdin.
View ArticleSPOJ - BITMAP (Getting TLE)
I was trying this problem on spoj - http://www.spoj.com/problems/BITMAPI am pushing all the white cells on a queue, and performing a BFS. The soultion times out. Here is my code -...
View Articlepassword 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 Articleregarding rank
why my rank in short event is NA even though m participating in short events & successfully submitted code in january cook off 2014
View ArticleRANK showing NA even with rating 1116
last month my rank was 5211/3688 in short challenge....this month its showing NA after sunday's cook off....
View ArticleHow to configure Eclipse to parse a contest?
Timed contests are all about getting the idea about a problem as fast as you can and then implement that idea, run the sample inputs, find and debug any errors and submit at the earliest possible time...
View Articleproblems missing in the practice section(easy)
lot of problems are missing from the practice section.i solved few practice(easy) section problems.but they are removed from the practice section and no. of submissions of the problems are also...
View Articlenot getting any error in codeblock ,but my code is not accepted
#include<stdio.h> int main() { int n,a[10],i; puts("enter the range"); scanf("%d",&n); puts("enter the numbers"); for(i=0;i<n;i++) { scanf("%d",&a[i]); } puts("the nos. are");...
View Article