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

getting wrong answer in KMXOR checked all the cases given in the editorial

link text this is my solution

View Article


Invitation to ProCon Junior 2018

"Code to fight, Code to survive, Code to win!"Hello Everyone!I would like to invite you all to participate in ProCon Junior to be held on CodeChef. It will begin at 19:30 IST on August 11, 2018.The...

View Article


what is the solution for time limit exceeded

My solution is showing time limit exceeded. What all can I do to solve this problem?

View Article

FLIPCOIN Editorial ?

I don't find the editorial of this problem FLIPCOIN on the Codechef. If anyone has the link please share it. Problem Link- https://www.codechef.com/problems/FLIPCOIN/

View Article

Python input error

When i try to run a code in python on codechef it gives EOF error.But the same thing if run with custom input it runs perfectly.

View Article


Add networkx in python

If possible, and if it is NOT unfair to other participants, Can codechef consider adding networkx library in python? It is very helpful library in manipulating graphs. Thanks.

View Article

Procon junior chef and pizza

How to solve “chef and pizza“ problem from procon junior?

View Article

penalty in short contest

how exactly is penalty calculated in short contests?

View Article


Why does this code not cause a SIGSEGV?

Why does this code not cause a segmentation fault when it is supplied with input 1 1000?#include <iostream> #define MAX 1000 using namespace std; long long dp[MAX] = {-1}; long long func(int n) {...

View Article


Internal Server Error in LTIME62 Forced Particles question

@admin I have been trying to submit solution for this problem for the past one day, but every time I'm getting internal server error on the submission result page!

View Article

repeating of staement

#include <stdio.h> int main(void) { float bal,total; int amt; printf("enter the amount"); scanf("%d%f",&amt,&bal); if(amt%5==0 && amt<bal) { total=bal-amt; printf("the balance...

View Article

QM10P5A editorial

PROBLEM LINK:PracticeContestAuthor:Chandan BoruahTester:Taranpreet SinghEditorialist:TaranPreet SinghDIFFICULTY:SimplePREREQUISITES:GreedyPROBLEM:Given N balls, each ball colored either red or blue, we...

View Article

QM10P5 editorial

PROBLEM LINK:PracticeContestAuthor:Chandan BoruahTester:Taranpreet SinghEditorialist:TaranPreet SinghDIFFICULTY:EasyPREREQUISITES:Slope of a line, Observation.PROBLEM:Given $N$ lines represented by two...

View Article


QM10P5B editorial

PROBLEM LINK:PracticeContestAuthor:Chandan BoruahTester:Taranpreet SinghEditorialist:TaranPreet SinghDIFFICULTY:EasyPREREQUISITES:Slope of a line, Observation.PROBLEM:Given $N$ lines represented by two...

View Article

A Learning Module for Beginners (Currently in Development, Feedback requested)

Hi fellow programmers,We are planning to create a course for beginners. Beginners often come to the site and got overwhelmed by so many problems present on the site. Many of them often ask where to...

View Article


Can anyone be blamed for plagiarism in Practice Questions ?

After contests are over, I do look at solutions of other coders and try understand and and improve solutions for lower time..... Can I be warned / banned in this case ?

View Article

Why is my solution wrong for practice Question FLOW006

include<stdio.h>main() { int t,i,n,sum=0; scanf("\n%d",&t); for(i=0;i<t;i++) { scanf("%d",&n); sum=0; while(n!=0) { sum=sum+n%10; n=n/10; } printf("\n%d",sum); } return 0; }

View Article


Why is my solution is wrong for practice Question FLOW006

include<stdio.h>main() { int t,i,n,sum=0; scanf("\n%d",&t); for(i=0;i<t;i++) { scanf("%d",&n); sum=0; while(n!=0) { sum=sum+n%10; n=n/10; } printf("\n%d",sum); } return 0; }

View Article

how many approx loops are allowed in 2.5 sec lime limit

How many approx loops can be traversed in 2.5 sec? And what should be best complexity to traverse 10^6?

View Article

Is Code Chef a competitive site or can I learn to code also here?

I am new to coding and in search of online certification courses in Coding and Programming. So is this a site for me?

View Article
Browsing all 39796 articles
Browse latest View live


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