Enormous Input Test C# top solution 0.14(time) gives 8.51 on my submission
I saw that C# had the best solution for the problem Enormous Input Test. I studied the basics of C# then I submitted my code. I got 8.21. Then I just exactly copied the best solution(even the comments)...
View ArticleDivide The Tangerine
Can anyone please explain what is meant by this paragraph "Please, note that parts are not cyclic. That means that even if the tangerine division consists of only one part, but that part include more...
View Articlefrom 5 to 7-8.
Hey, fellow coders. I have been participating in Code-chef challenges for like 2 years now, trying not to miss a single contest. And it has been long since i have been solving 4-5( at max 6) problems...
View ArticleWhat's wrong with the following cooling pies C program?
include<stdio.h>int main() { int t,n,j,pie[101],rack[101],small_pie,small_rack,count=0,i,index1,index2; scanf("%d",&t); for(j=0;j<t;i++) {scanf("%d",&n); for(i=0;i<n;i++){...
View ArticleDivide the Tangerine
Can anyone provide more test cases for the problem !!! I have tried various test cases
View Articlealternative to getche()
i want to use getche() ,but i m not able to. because it's #included in conio.h which is not allowed in code chef.. so what should i do. actually i want to scan 234568790098765430987654 digit by digit ..
View ArticleGlobal LeaderBoard page Problem
Hello, Whenever I access the page http://www.codechef.com/rankings/APRIL14 , my browser begins to use too much of memory leading to a slowdown of my pc ....eventually leading to a crash.Is this a...
View ArticleHelp on Fast input/output
can someone explain me what's fast input/output. I m sorta new to this stuff and would really appreciate some help. Thank you.
View ArticleNeed help with Compilation error (Works fine with Dev C++)
Can someone kindly help me find the error ? The code is running fine in Dev C++.prog.c: In function �main�: prog.c:8:25: error: expected �)� before �x�...
View Articleinputting strings
when i used to read a string character by character i get an error but when i read the string as a whole by using scanf(%s") or gets i get the correct answer can anyone explain why? i have even...
View Articleinput function
I have seen many programmers use something as "getchar_unlocked()" function in their program in C for accepting input . Can anybody tell me what this function does and what is the advantage of using...
View Articlecan 0-1 knapsack be implemented using 1D array??
I found implementation using 2D array. But how to implement it using 1D array and if it is not possible then why???
View ArticleSEAPERM Scoring problem
Scoring problem, It says B/Sum must be low. This means, Sum must be large, this means (f(a,1)+f(a,2)+....f(a,k))/k must be large which contradicts the problem statement which says "(f(A, 1) + f(A, 2) +...
View ArticleCards, bags and coins Problem
I ma getting WA.. Can anybody tell me what will be the output if card number is '0'. Or if 2 cards have the same number?
View ArticleGood reading source on Fread()... How does it work ?
Hey guys, I am trying to code the enormous input problem (Easy). The most efficient code in C uses a fread() call to take in the input. Can someone please explain why this method takes the least time...
View Articlequestion in april challenge
I am getting TLE for my submission to the problem CHEF and DIGITS in April Challenge 2014. I submitted the code many times with necessary changes but it is showing TLE in every case. PLEASE solve my...
View ArticleMSTICK - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESRange Minimum Query, Simple MathPROBLEMYou are given N matchsticks arranged in a straight line, with their rearends touching each other. You are...
View ArticleMIKE2 - Editorial
PROBLEM LINKSContestPracticeAuthor: Constantine SokolTester: Roman RubanenkoEditorialist: Praveen Reddy VakaDIFFICULTY:simplePREREQUISITES:Greedy AlgorithmsHINTSort the array and see if you can figure...
View ArticleNZEC error
hi guys can you please tell why this python code is giving NZEC error import psyco psyco.full() def main(): l=[] n=int(input()) for i in range (0,n): temp=int(input()) l.append(temp) l.sort() for i in...
View Article