my countryID
I belong to india and my username is "ahsas" but my account shows that the codechef server couldnt detect my country.... plzzzz help admin
View Articlestore xml in java data structure
Define a java data structure to store n number of files as defined below note that each file may contain millions of tags and each tag may contain millions of subtags.the aim of ds should be such that...
View ArticleError in code
The code is working fine on my system. Can you please what is the error in it? The code is of CAO stage-1 of September Challenge 2013
View ArticleRuntime error SIGSEGv
My code runs perfectly fine on the system, both geany(ied) and terminal. I even checked for the standard input output format, reading the inputs from a file and directing them to another output file....
View Articlewhy, getting compile time error? (its working fine in netbeans)
Main.java:8: error: class cool_guys is public, should be declared in a file named cool_guys.java public class cool_guys
View ArticleRuntime Error(NZEC)
I get the following error Runtime Error(NZEC)when running python code with psyco JIT compilingcode: import psyco psyco.full() ......
View ArticleIts 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 ArticleWhat 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 ArticleProblem 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 ArticleUpdate 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 ArticleSPOJ 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 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 Articlehow 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 ArticleWhat 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 ArticleCalculating 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 ArticleCodeChef 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 ArticleSIGABRT error
Getting SIGABRT in CAO2. Any Clue as to how to correct it ? Data given in FAQs seems insufficient !
View Article