Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 40121 articles
Browse latest View live
↧

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 Article


Chef 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 Article

Graph theory

How can we check whether a directed graph has spanning tree or not

View Article

nltk( 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 Article


Why 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 Article

Why 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 Article

ATM 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 Article


new 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 Article


getting 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 Article

topcoder how to get started with topcoder?

i am new to topcoder . from where shall i start in topcoder .. and how to earn badges ..

View Article

What 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 Article

raking 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 Article


FORGETPW 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 Article

Different 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 Article


DOUBLE 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 Article

deactivation 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 Article


Image may be NSFW.
Clik here to view.

RIP 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 Article

NZEC 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 Article

NZEC error in java

http://www.codechef.com/viewsolution/4114400http://www.codechef.com/problems/FORGETPWGetting NZEC error Why?? PLZ Help

View Article
Browsing all 40121 articles
Browse latest View live


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