problem code A3
I need some help on Problem A3 (The guessing game) there are few submission which makes no use of seg tree or fenwick tree , can some one plz expalin the logic
View ArticleLong Challenge Ranking
I just opened my account and my Long Challenge ranking shows NA.. Why is this??
View ArticleC++ - Pointers, Call by reference, Basic
I have a long-term fear of pointers and I am trying to start from the beginning to make my roots strong. As basic as this question may seem, can someone address this query? Would be of great help. I am...
View ArticleCHSEQ22-Editorial
PROBLEM LINK:PracticeContestAuthor:Roman FurkoTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:Easy-MediumPREREQUISITES:Connected componentsPROBLEM:We are given an array of N...
View ArticleGERALD03 - Editorial
PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:SimplePREREQUISITES:GreedyPROBLEM:Given a sequence of intervals [Li, Ri], try to transform...
View ArticleHow 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 ArticleNumber 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 Articlewhats 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 ArticleSTEPUP: 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 ArticleCOLARR-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 ArticleTechnex'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 ArticleWhat'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 Articlegetting 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 ArticleProgramming 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 ArticleGetting 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 ArticleWRONG ANSWER IN PRIME PALLINDROME
PLZ HAV A LOOK ON CODE AND TELL ME WHY I'M GETTING WRONG ANSWER#include<stdio.h> int main() { int i, j, n, temp, flag, rem, rev; scanf("%d", &n); for (i = n + 1; i <= 1004000; i++) { temp...
View ArticleKayaks wrong answer c++.
getting correct for the test case... my attempt was http://www.codechef.com/viewsolution/3478153 .
View ArticleFormal 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 ArticleTWODOGS-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 ArticleEasy 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