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

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 Article


Image may be NSFW.
Clik here to view.

METEORAK - Editorial

PROBLEM LINK:PracticeContestAuthor:Roman RubanenkoTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Dynamic ProgrammingPROBLEM:Given a N * M matrix mat with some obstacles...

View Article


FGFS - Editorial

PROBLEM LINK:PracticeContestAuthor:Vivek HamirwasiaTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:EasyPREREQUISITES:Sort, Greedy.PROBLEM:Given some sets of open intervals (exclusive at two...

View Article

ERROR - Editorial

PROBLEM LINK:PracticeContestAuthor:Vivek HamirwasiaTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:Programming Language.PROBLEM:Determine whether the given binary string...

View Article

Image may be NSFW.
Clik here to view.

A 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 Article


Weak 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 Article

ATM 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 Article

cheating 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 Article


Does 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 Article


Ratings 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 Article

Chrome 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 Article

How 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 Article

getting WA for HELLO

question linkmy solution please give me a test case where my code fails

View Article


Getting 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 Article

run time error..

how to minimize runtime error???

View Article


Getting wrong ans in HELPLIRA ?

http://www.codechef.com/viewsolution/3150194 Please tell me which case or point am I missing.

View Article

LASTDIG - 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 Article


Wa 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 Article

SPCANDY - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYCAKEWALKPREREQUISITESSimple MathPROBLEMYou wish to equally distribute N candies among M people, using the following algorithmnCandies = 0 candies-with-each-person...

View Article

wchar_t explaination

can anybody explain the use of wchar_t type and what is its real purpose..thanks!

View Article
Browsing all 39796 articles
Browse latest View live


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