Using scanf() for strings
I was wondering why we don't get an erroneous result when we use 2 scanf statements for accepting two strings, one after the other. The first scanf("%s",s1) statement ends when we hit a '\n'. It leaves...
View ArticleMETEORAK - Editorial
PROBLEM LINK:PracticeContestAuthor:Roman RubanenkoTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Dynamic ProgrammingPROBLEM:Given a N * M matrix mat with some obstacles...
View ArticleFGFS - Editorial
PROBLEM LINK:PracticeContestAuthor:Vivek HamirwasiaTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:EasyPREREQUISITES:Sort, Greedy.PROBLEM:Given some sets of open intervals (exclusive at two...
View ArticleERROR - Editorial
PROBLEM LINK:PracticeContestAuthor:Vivek HamirwasiaTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:Programming Language.PROBLEM:Determine whether the given binary string...
View ArticleA tutorial on Suffix Arrays
Hello @all,This text will focus on the construction of Suffix Arrays, it will aim to explain what they are and what they are used for and hopefully some examples will be provided (it will be mainly...
View ArticleWeak test cases for SEAGRP (Jan14 long contest)
The test cases for the problem SEAGRP are weak. Many wrong solution are being accepted which must have failed if test cases were good. One of my friend got accepted but his code giving wrong answer on...
View ArticleATM compiler c4.3.2
#include<stdio.h> int main() { float x; int y; scanf(%d",&y); scanf("%f",&x); if(y%5==0&&(x-y)>0.5) printf("%0.2f",(x-(y+0.5))); else if(y%5!=0&&(x-y)>0.5)...
View Articlecheating in december long
http://www.codechef.com/users/dragonslayerv2http://www.codechef.com/users/dragonslayerxThese two contenstants seem to be cheating. Exact same scores in the problems and the same order and time in which...
View ArticleDoes CodeChef have any Code Of Conduct?
I am new to CodeChef. I am not sure what can be considered as an improper conduct on this website. I do not want to be penalized for doing something unknowingly which is not the accepted behavior. Is...
View ArticleRatings of people who cheated increased
This is to bring to your notice that all users whose solutions were same in Kamehameha question of October Long Challenge have had their rating increased. This is unjustified and unfair.An earlier post...
View ArticleChrome Extension for adding CodeChef problems to to-do list
I (along with @sparshgunner12 and @mainak22793 ) had earlier developed a Chrome extension called "CodeLater", which can be used as a to-do list for CodeChef problems. It adds a "CodeLater" button to...
View ArticleHow to check compile time?
HelloIs there a way (I know there must be one, only I'm not aware) to check the program memory, compile time and call stack in Code::Blocks with MinGW 4.7.2?Thanks
View Articlegetting WA for HELLO
question linkmy solution please give me a test case where my code fails
View ArticleGetting WA with HELPLIRA
I have tried several times and yet I am getting WA in the problem HELPLIRA.MY LATEST SUBMISSION:http://www.codechef.com/viewsolution/3255224Could someone kindly point out my mistake.Thanks in advance :)
View ArticleGetting wrong ans in HELPLIRA ?
http://www.codechef.com/viewsolution/3150194 Please tell me which case or point am I missing.
View ArticleLASTDIG - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis problem can be solved using dynamic programming, however a more sophisticated solution exists. Denote C(N) as the sum of D(N) over all values...
View ArticleWa for Magic trick
Seeing a bit of cold response on the editorial page i am posting this as a question.Problem:::Magic trickHere's my EDIT: code and its giving a WA and i am unable to figure it out why... Please help...
View ArticleSPCANDY - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYCAKEWALKPREREQUISITESSimple MathPROBLEMYou wish to equally distribute N candies among M people, using the following algorithmnCandies = 0 candies-with-each-person...
View Articlewchar_t explaination
can anybody explain the use of wchar_t type and what is its real purpose..thanks!
View Article