Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 39796 articles
Browse latest View live
โ†ง

COMPILER - Editorial

PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Sergey KulikEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:AD-HOC PROBLEM:Given a bracket sequence, print the length of largest prefix...

View Article


CHEFBM - Editorial

PROBLEM LINK:PracticeContestAuthor:Dmytro BerezinTester:Sergey KulikEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:AD-HOC PROBLEM:There is a N * M matrix, where A[i][j] is j for all i,j. There...

View Article


WA in RRSTONES may long challenge

I know it is an ongoing contest, so answer my question only after the contest gets over; I've tried solving RRSTONES considering all corner cases but still getting WA. Can anyone please tell me where I...

View Article

RR Stone CONSTRAINTS

How to handle the CONSTRAINTS in Codechef?? I am solving RRSTONE problem, everything looks fine from my side like logic and all. but it is saying WA. DO we programmers need to take care that the...

View Article

RRSTONE may long challenge help

I've tried solving RRSTONES considering all corner cases but still getting WA. Can anyone please tell me where I am going amiss. here is my code http://www.codechef.com/viewsolution/3855501

View Article


Prime Palindrome HELP Part 2-Time Exceeded

Okay so the program is working, however I suppose it's too slow for the submissions liking. What would you do to make it faster? Use a class, inline functions, etc.include <cstdio>int...

View Article

Getting WA in C++ but AC in Python.

Please dont suggest to check the algorithm carefully because, I know my solutions are correct since when implemented in python I got AC.But still unable to get AC for chef-jumping and rrstone in...

View Article

Prime Palindrome HELP Part 3-Time Exceeded

I've optimized the prime function and its still exceeding the time limit? Any ideas? Solution located at : http://www.codechef.com/viewsolution/3901718

View Article


Image may be NSFW.
Clik here to view.

TANGDIV - Editorial

PROBLEM LINK:PracticeContestAuthor:Ilya MalinovskyTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:EASY-MEDIUM PREREQUISITES:Ad-Hoc PROBLEM:Numbers 1 to N are written in...

View Article


SEAGM Incorrect Submissions getting AC

While the output to the input:1 4 14 10 63 21 Should be:1 0.5833 In many of the AC answers it is:0 0.5833 Please add this case and rejudge.

View Article

Binary tree structure in this case.

Imagine a binary tree lying on the floor with nodes as balls and edges as threads, you are given a pointer to a node. When you pick the tree from that node up what will be the structure of the tree....

View Article

Practice programming

There are so many sites like Codechef , Topcoder , Codeforces , Spoj , Hackerrank , Hackerearth etc to practice coding questions . Which is better approach Start practising on all these sites ,...

View Article

What's wrong with my code for ceil A-B problem ?

Hi, Here's the code for Ceil A-B probleminclude<stdio.h>int main() { unsigned long a=0; unsigned long b=0; scanf("%lu %lu", &a, &b); printf("%lu\n", (a-b)^1); return 0; }What's wrong with...

View Article


Name: special characters & unicode

Hi,I noticed that there is an issue with displaying names with special charaters like accents or c-cedilla (รง). However, there is an utf-8 charset used in the website, so the problem could be in the...

View Article

Approving an institution : time to do it

Hi,I had registered my institution on my profile since the last lunchtime contest (in April) and it is not approved yet. So, my question is : how long does it take to do it ? In my case, it is not...

View Article


Qsort function in C

how does the qsort function work in Cqsort( s , n , sizeof(struct coord) , compare );how can one manipulate the compare function in qsort while sorting structure rather than a array like above and how...

View Article

Implemenation of MAP STL

Is there any map related questions(easy one)??

View Article


How is rating computed in case of ties?

@admin: I am wondering how the rating for long contests is computed in case of ties. Specifically, I am interested in the case of the recently ended May 2014 long contest, where me and @aawisong where...

View Article

PROSUM - Editorial

PROBLEM LINK:PracticeContestAuthor:Vivek HamirwasiaTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:Simple MathPROBLEM:Given a sequence of numbers A[1..N], find the number...

View Article

MSTICK - 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 Article
Browsing all 39796 articles
Browse latest View live


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