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

TLE when throwing >= 1 darts for training in the DARTS problem [June 2014...

After the current change in the judge for the DARTS challenge problem from the June 2014 long contest, the judge is more broken than before.As far as I understood, the initial version of the judge was...

View Article


Approach for PRIMEDST

For the question http://www.codechef.com/AUG13/problems/PRIMEDST , I read the editorial but just want to check if the approach i thought is correct or not:Taking all vertices as root in each turn and...

View Article


WA in SPOJ-BOTTOM

In the question http://www.spoj.com/problems/BOTTOM/ i am regularly getting a wrong answer. I am trying to modify Targans Algorithm for Connected Components. This is my code http://ideone.com/Qe6BmJ My...

View Article

Feature request

It would be nice if codechef had a feature where we could see all the people from our particular organization/institution only.

View Article

implicit calls ??

why the implicit call to EXIT() and clrscr() are marked as error ?please have a look at my code , and there are errors as per the codechef's compiler !include<stdio.h>void f1(); void f1() { int...

View Article


How to iterate hashmap with highest String key value

HashMap<string, string=""> mapp=new HashMap<string, string="">(); mapp.put("ab","blue"); mapp.put("abc","black"); mapp.put("abcef","black"); mapp.put("abcd","pink"); for (Iterator it =...

View Article

WA in NAME2

#include<iostream> #include<algorithm> using namespace std; class test{ public: string f,l; }; bool ispresent( char ch , string &k ) { for(int i=0;i<k.size();i++) { if(k.at(i)==ch)...

View Article

find size of array without using sizeof() function

on internet i found tht above mention method works fine only for int type of array but if array of ptr is there or other case it wont work,there people r suggesting to use array container and using its...

View Article


DBOY: Getting wa

I am getting a wrong answer for the practice problem DBOY. Can anyone tell me the problem with my solution?.Please tell me test cases where my code dosen't work .

View Article


HOTEL-what does the prob mean??

I'm unable to get the question as in what it wants??...unable to understand it Here's the link - http://www.codechef.com/problems/HOTEL

View Article

stringhandling

char a[20]="codechef"; printf("%d",a);//what is the output?

View Article

Just reevalute FUNC

i sent some corner cases of FUNC at feedback@codechef.com but i don't see any positive response related to rejudge of FUNC ................i already put these cases on forum but deleted by someone ......

View Article

how to test as i use visual studio

how to test my c programs from command line as described here http://www.codechef.com/wiki/faq#How_should_I_test_my_programI don't see a way to do that as i am using visual studio. I want to test ,my...

View Article


How to use fflush(stdout)

I want to know how to use fflush(stdout) as I haven't used this before and I am facing problem.can anyone please give a sample code to use it. in june challenge one has to use it in solving DARTS501...

View Article

C++11 , just a pretty face?

Okay, so i have been checking upon my old submissions, finding new ways to optimize them, i came across with these unusual thing, While i truly follow C++11 for my programming, it seems that there are...

View Article


Where can I find upcoming contests on codechef?

I want to see the upcoming contests, but there is no option on the site.

View Article

whats wrong with this code ? for "Life,the Universe and Everything" Question

include <stdio.h>int main(void) { int n ; while((n!=42)&&(n<100)){ scanf("\n%d",&n); printf("%d",n); } return 0; }

View Article


why am i getting sigsegv error everytime?

my code for turbo sort is #include<iostream> using namespace std; int main() {int a[100],i,t,j,c; cin>>t; for(i=0;i<t;i++) { cin>>a[i]; } for(i=0;i<t;i++) { for(j=0;j<t;j++)...

View Article

Transform the Expression - WA

#include <stdio.h> #include <ctype.h> int main() { int t; scanf("%d", &t); while(t--) { char expression[400]; expression[0] = '\0'; scanf("%s", expression); char operatorStack[400];...

View Article

Forgot password...plz consider @admin ...and check my code for your test...

i have tried all possible test cases....... plz check from my submissions...n REPLY @admin

View Article
Browsing all 39796 articles
Browse latest View live


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