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

Chef and Rainbow Array in C

Can anyone tell me why my answer is wrong? I tried running my program with custom input and it worked all the time. What's the matter with my code?#include <stdio.h> int max (int *parr,int n){...

View Article


recursion using c

Given two arrays of integers output the smallest number in the first array not present in the second one.

View Article


Showing Wrong Answer despite of correct output.

Here is my code to the question#include<stdio.h> #include<math.h> long int A[100005]; long int sum; int main(){ int t,n,i,j; scanf("%d",&t); while(t--){ sum=0; scanf("%d",&n);...

View Article

three test case passes...? any one can solve this question

The delhi-iit has organized a lucky draw for students.It is planned to select X students in Y days, and give them some M Reward points freely,such that the student selected gets 100 Reward points every...

View Article

mathison and pangrams

include<stdio.h>int main() { int t,arr[26],i; scanf("%d",&t); while(t--) { int sum,temp[26]; sum=0; for(i=0;i<26;i++) { scanf("%d",&arr[i]); temp[i]=0; } char str[50001];...

View Article


WHY IS THE CODE GIVING ME NZEC

This code is passing the first 2 test cases in the problem with AC and giving me 40 pts but not passing the last 2 cases. The solution is fast enough for the problem required and even after multiple...

View Article

Why am i getting nzec?

link text

View Article

CHEFFA - Editorial

PROBLEM LINK:PracticeContestAuthor:Dmytro BerezinTester:Prateek GuptaEditorialist:Hussain Kara FallahPROBLEM EXPLANATIONChef has an array consisting of N elements. Chef may pick any 2 adjacent elements...

View Article


Integer to character array

How to store any integer number (12345) in character array??

View Article


Why do I get an NZEC?

Why m i getting NZEC (Non Zero Exit Code) for my program?

View Article

More test csse

I'm looking to solve LEPERMUT problem.I can get some more test data for the problemhttps://www.codechef.com/problems/LEPERMUT

View Article

why is the solution for rainbowa giving wrong answer

x=int(raw_input())out=[]while x>0 :l=[] first=[] flag=0 half=[] y=int(raw_input()) l=raw_input().split() l=list(map(int, l)) for i in range(y/2): first.append(l[i]) if(l[i]==(l[i+1]-1) or...

View Article

Image may be NSFW.
Clik here to view.

Not able to see the questions of INOI practice contest

@admin Why am I not able to see the problems on INOI practice contest?

View Article


Python to pypy

I came to know that pypy is way faster than python and it's syntax are almost similar. But when I had submitted this code it gave me error in pypy but not in pyth .Why is it so? And can someone please...

View Article

Getting 'fatal' error at the IARCS Problem Archive

I am trying to solve this problem. But I am getting a 'fatal' error. I am not able to find the reason of the error as I think this code works fine. Please help me find why this produces a 'fatal'...

View Article


Not able to submit my code in September Challenge - SEPT17

@admin: I am trying to submit my solution to the problem "Fill The Matrix" (FILLMTR), since morning, but each time I made my submission it says "403 Forbidden". Even the submission is not shown in my...

View Article

A tool to download all your successful codechef solutions in one go

Hi all,tl;dr: I have created a web crawler tool that can download all your AC solutions in one go. Just provide the username and it will download all the code for you.To fit the use case when we often...

View Article


YouTube Playlist for Dynamic Programming Made Easy

HiI have already released the playlist for Codechef August Long Challenge 2017 here. If you liked them, follow the Facebook Page to stay updated. A lot of coders face issues with DP as a beginner.. It...

View Article

Race Track question runtime error

You are given the initial health and tracks for 2 contestants - A and B The tracks are denoted as strings of characters '_','+','-','*'. The ending of the track is denoted using '|'. The contestants...

View Article

"I want to ask a question" - Ask them all here!

Hello guys,UPDATE- This thread is now for people who are unable to ask questions due to low-karma/losing-karma or time limit.As you all are aware, many times there are genuine users who wish to ask a...

View Article
Browsing all 39796 articles
Browse latest View live


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