Quantcast
Browsing all 39796 articles
Browse latest View live

Runtime Error(NZEC)

I get the following error Runtime Error(NZEC)when running python code with psyco JIT compilingcode: import psyco psyco.full() ......

View Article


Its is saying wrong answer, I don't know why

I am new to this site and I tried the first one of September Challenge, It is working fine and I am getting the required result. But it says wrong answer, don't know why. Can anyone help me figure it...

View Article


What is the criteria for choosing the Time Limits on a program?

I was trying to solve the CAO Stage 2 problem in the September Challenge. However, it shows that my solution timed out. The time limit for the problem is 1 secs and I got TLE. However, some submitted...

View Article

Problem in to queue or not to queue

To Queue or not to queue is one of the Question...Ive been satisfyin all the conditions like the range of Q, string length is a +ve integer, c is lower case and modulo... Ive gone through all these...

View Article

Update submatrix and query submatrix.

If we are given a matrix of NxN (N<=1000). There are 2 operations:update x1, y1, x2, y2, val. In this operation, val is added to each element in the sub-matrix (x1, y1, x2 y2).Query x1, y1, x2, y2....

View Article


SPOJ Problemm Code GSS1

For practising segment trees I was trying the GSS1 problem of SPOJ. When I ran my code on SPOJ it failed on the 9th test case. After some debugging, i came up with test case 6 1 2 80 79 -90 -8 1 1 6But...

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

WA for ANAGRAM TECH04

Problem link : TECH04My code : TECH04

View Article


how to input a 2d matrix using getchar_unlocked

how to input a 2d matrix using getchar_unlocked or the fastest method to do so.

View Article


How many substrings?

how find the number of diffrent substrings in string S.

View Article

Not getting desired output for I Spy You CD202

Problem link : CD202My code : CD202

View Article

What is the difference between scanf and gets?

Problem : NOPC1My code using scanf : scanfMy code using gets : getsApart from the input method everything else is same in the codes. Then why the outputs of both are different?

View Article

Calculating Trigonometric Ratios Of an Angle in C++ without using the...

Hey , I'm a high school student . We've been given a question in programming in C++ to find trigonometric ratios of an angle without using sin() , cos() , tan()..Right now , I'm totally blank . Please...

View Article


CodeChef Quick Ranks Chrome Extension

Here's my first crude attempt on a chrome extension, I thought it should be related to CodeChef somewhat :P You can see the ranks in all the contests u have participated on...

View Article

SIGABRT error

Getting SIGABRT in CAO2. Any Clue as to how to correct it ? Data given in FAQs seems insufficient !

View Article


People asking help on facebook

It's slightly off-topic post but, a necessary one. From, the past few contests i observed a thing unkown people are asking help and hints about the codechef long-contest problems on facebook by...

View Article

Contest question

To take part in the september challenge 2013 should I have signed-up somewhere or am I good to go as it is(without prior sign-up) and if I am able to participate where can I see my rating?

View Article


Suggest me a book for algos

Hey, can anyone suggest me a good book for algorithms at beginner level ?? I have CLRS but its very difficult to understand . :(

View Article

SIGSEGV error

can anyone tell me why the program at this link:http://www.codechef.com/viewsolution/2366766 is showing SIGSEGV error.

View Article

java vs other

why is the running time of java so large compared to other languages,isn't there any way to reduce it other than making the algorithm efficient!!

View Article
Browsing all 39796 articles
Browse latest View live


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