Cheating in June Long Contest 2013
Just want to bring it to the admin's notice. Problem - http://www.codechef.com/JUNE13/problems/SPMATRIX Following set of solutions by different users are same:...
View Article#define directive use ?
What exactly are the benefits of using #define directives like this :include<stdio.h>define QUICK(x) printf("%s\n",x);define ADD(x, y) printf("%d\n",x+y);int main() { QUICK("Hello!") ADD(5,6)...
View ArticleChef and Functions JUNE 2014 CHALLENGE ??
I USED SIMPLE APPROACH TO SOLVE THIS AND GET TIME LIMIT EXCEED. PLEASE EXPLAIN ME SOLUTION OF THIS PROBLEM AND APPROACH TO SOLVE THIS PROBLEM,WHICH TYPE OF ALGORITHM SHOULD BE USED TO SOLVE THESE...
View Articlenltk( natural language processing)
I want to design a search engine in python using nltk( language processing)[designing a website in web2py.. i need to add advanced search engine in it]. Do i have to study complete ntlk book :( .. does...
View ArticleWhy is this approach giving WA while the other one is not ?
Have a look at this code. Then at this code.Can somebody please help me figure out why is my approach giving WA and the other one is not? This problem disturbed me a lot during the contest.
View ArticleWhy is C program taking more memory than usual in codechef?
Just used two integer variables in my program and codechef says Mem 2.2MID Date/Time User Result Time Mem Lang Solution4112817 41 min ago pravinkumarr 0.09 2.2M C ViewMy program...
View ArticleATM problem showing runtime error
#include <stdio.h> int main() { int wi; float ab; scanf("%4d%4.2f", &wi, &ab); if(ab>wi&&(wi%5==0)) printf("%4.2f", (ab-wi-0.5)); else printf("%4.2f", ab); } i don't know why...
View Articlenew to recursion, getting StackOverflow. Help!
I am writing a divide and conquer recursive function to find minimum element in array. But I am getting java.lang.StackOverflowError . Here is my code. Thanks in advance.import java.util.Scanner;...
View Articlegetting WA in FUNC..
enter code here #include <stdio.h> include <math.h>include <stdlib.h>define mod 1000000007long long b[61]; void fill(long long x) { int flag=1,i=1; while(flag) { if(i==1) b[i]=x; else...
View Articletopcoder how to get started with topcoder?
i am new to topcoder . from where shall i start in topcoder .. and how to earn badges ..
View ArticleWhat is wrong with this approach in solving problem JADEJA?
I read this problem and concluded that we have to count the number points with integral coordinates(both coordinates). So with two given points I got the equation of the line and then by looping from...
View Articleraking not updated
I have attended two long challenges and I solved 2-3 problem but at long contest ranking it showing "NA". What the reason for this.
View ArticleFORGETPW WA
Can someone please point out where I am making a mistake. I have spent hours on this ad-hoc question, and am clueless as to where I am going wrong. My code does work fine for the tricky cases given in...
View ArticleDifferent runtimes between codechef and ideone
Hi, I was solving the question Bogosort | Codechef. The solution (Codechef link) i submitted on Codechef gave me tle where as the same solution (Ideone link) i checked on Ideone ran for 1.17 sec for...
View ArticleDOUBLE STRINGS - WA
#include <stdio.h> int main() { int t; scanf("%d", &t); while (t--) { long int n; scanf("%ld", &n); if(n % 2 == 0) { printf("%ld\n", n); } } return 0; }
View Articledeactivation of old account
i am having two accounts one with username vivan9518s and another with vaibhav9518s. i just came to know that it is not allowed to have two accounts .so kindly decativate my account with...
View ArticleRIP humblefool
http://www.topcoder.com/blog/a-tragic-loss/& http://codeforces.com/blog/entry/12716TC SRM 625, SRM of silence, will be dedicated to Harsha Suryanarayana(humblefool). My condolences to his family,...
View ArticleNZEC Runtime error in java
import java.io.; import java.lang.System.; import java.util.*;public class Main {public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int T; for (T =...
View ArticleNZEC error in java
http://www.codechef.com/viewsolution/4114400http://www.codechef.com/problems/FORGETPWGetting NZEC error Why?? PLZ Help
View Article