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

How much reputation do i need to down vote a question or answer on...

Also i want to have a look at a chart describing reputation vs. permissions on the forum

View Article


Kayaks wrong answer c++.

getting correct for the test case... my attempt was http://www.codechef.com/viewsolution/3478153 .

View Article


Number of ways of selecting the numbers

Suppose i am given an array and a sum.I am asked to find the number of ways in which i can select the numbers from the given list(one number can be used any number of times) so that i can achieve the...

View Article

Long Challenge Ranking

I just opened my account and my Long Challenge ranking shows NA.. Why is this??

View Article

whats the mistake...??? (ATM)

#include<stdio.h> int main() { float amt,rmn,f; int wd; scanf("%d %f", &wd, &amt); if(amt<=0 || wd<0) { exit(0); } if(wd%5==0 && amt>wd && wd>=0) { f=(float)wd...

View Article


STEPUP: Need Output

For the practice problem Stepping Up, what should be the output for the following input?1 3 3 1 2 1 3 2 3After spending quite some time trying to solve the problem, I checked an accepted solution and...

View Article

COLARR-Editorial

PROBLEM LINK:PracticeContestAuthor:Dmytro BerezinTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:EasyPREREQUISITES:Ad-hoc, SortingPROBLEM:We are given a list of N cells, and a...

View Article

Image may be NSFW.
Clik here to view.

Technex'14 and FireEye, Inc. present Matheletics

Matheletics is a mathematical contest (inspired from PROJECT EULER) where a sound knowledge of mathematics together with computational thinking will be essential to solve problems. The motivation...

View Article


What's wrong with my code (Sereja and Graph) (SEAGRP) ?

The code basically counts the number of nodes with even order and number of nodes with odd order and if they both are even individually, then it prints yes and no otherwise . #include <iostream>...

View Article


getting NZEC java !!

Here is my code :import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { static final char[] spoon = {'p','o','o','n'}; static final char[]...

View Article

Programming Language to use

Hi,The only programming language I m familiar with is C#. But i see most of the guys using C, C++ or java.Do I need to learn one of these languages or is it fine with C#?

View Article

Getting NZEC in java ??

package practice; import java.util.Scanner; class Cricket { /** * @param args */ public static void main(String[] args) throws Exception { // TODO Auto-generated method stub // BufferedReader br = new...

View Article

WRONG ANSWER IN PRIME PALLINDROME

PLZ HAV A LOOK ON CODE AND TELL ME WHY I'M GETTING WRONG ANSWERinclude<stdio.h>int main() { int i, j, n, temp, flag, rem, rev;scanf("%d", &n); for (i = n + 1; i <= 1004000; i++) { temp =...

View Article


Formal parameters of static storage class in C\C++

what problem it will cause if any language(C\C++) allow formal parameter of static storage class? I am asking more specific to C/C++ language.#include<iostream> using namespace std; void...

View Article

TWODOGS-Editorial

PROBLEM LINK:PracticeContestAuthor:A Surya KiranTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:EasyPREREQUISITES:Ad-hocPROBLEM:Given a list of integers A and an integer k, pick...

View Article


Easy Question - Birthday Candles

for the easy level question Birthday Candles : http://www.codechef.com/problems/CANDLE/ i have tried all the test cases that i could but i m still getting wrong answer. Please tell me the tell case for...

View Article

check my code. codechef is giving it wrong.

here is my code for EASY problem---Life, the Universe, and Everythingimport java.io.BufferedReader; import java.io.InpputStreamReader; import java.util.ArrayList; class Life { ArrayList<Integer>...

View Article


IOPC13: Crazy Teacher

I have tried solving this question http://www.codechef.com/IOPC2013/problems/IOPC13H , but iam not able to figure out an algorithm, can any one explain/ideas about??

View Article

Image may be NSFW.
Clik here to view.

Now on commitment phase.

Competitive programming proposal on StackExchangeQ & A on Stack Exchange.Thank you guys, with your help the proposal moved to next phase - Commitment.

View Article

Holes problem

#include<iostream> using namespace std; int main() { char a[5],i,j,n,count=0; cout<<"Enter the value of n :"; cin>>n; cout<<"\n Enter the character "; for(i=0;i<n;i++) {...

View Article
Browsing all 39796 articles
Browse latest View live


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