Quantcast
Browsing all 39796 articles
Browse latest View live

getting wrong answer in maxcomp

pls temme y i am getting wrong answer for http://www.codechef.com/problems/MAXCOMP .My solution is http://www.codechef.com/viewsolution/4044666my logic is correct..i am expecting a tle..but it s...

View Article


WA in DECSTR

#include<iostream> #include<vector> using namespace std; int main(){ std::ios_base::sync_with_stdio(false); vector <long int> v; int t1,x,t; cin>>t1; for(int i=0;i<t1;i++) {...

View Article


Getting NZEC Error while solving Chef and Functions in python.

I tried executing on ideone and it executes succesfully for very large values. Then I checked all submissions made in python, and saw most of them got the NZEC error too. Anyone who tried solving in...

View Article

How to estimate if an algorithm performs within the time limits ?

Sometimes, I think so much to come up with an algorithm, then code it well only to find out that it gives a TLE. How can we estimate whether an algorithm with so-and-so complexity fits well with the...

View Article

WA in Carvans

Here's the link http://www.codechef.com/problems/CARVANSinclude<stdio.h>int main() { int t, c[100], n, d, ctr, i, j; scanf("%d", &t); while (t--) { ctr = 1; scanf("%d", &n); for (i = 0; i...

View Article


AMSGAME1 - Editorial

Problem Link:PracticeContestDifficulty:CAKEWALKPre-requisites:gcdProblem:You are given a set of N positive numbers A[0], A[1], ..., A[N-1]. At each step you pick two unequal numbers and replace the...

View Article

Forgot Password

by any chance 123.456e+5 is not considered as possible output or it is not decimal number. Right?

View Article

MODULO with 10^9+7

Is (a - b) mod m same as ((a mod m) - (b mod m)) mod m?I'm having hard time dealing with it.Also if (a mod m) < (b mod m) then answer should be ((a mod m) - (b mod m) + m) mod m? I tried using...

View Article


Why doesn't code chef provides traceback ?

I just wanted to ask, why doesn't CodeChef gives us a traceback. It could be so helpfull in case of run time errors especially NZEC s. This is so annoying sometimes. As one spends hours planing a...

View Article


Sudoku Solver - C++

Hey guys, I made this Sudoku Solver and....... its not working. When I enter a proper Sudoku, It displays 9, and then all the other boxes are blanks.#include <iostream> using namespace std; int...

View Article

just reevaluate chef and digit jump

check for following test cases1: 09988877766655544433222233008855772: 99888777766644668877665553334445556977775558875554for the above test cases rejudge all the accepted solution Actual answer for...

View Article

General Info about the contest

When will the solution of the ongoing contest will be put up?

View Article

Maxim and Progressions

wrote an O(n^2) algorithm...but repeatedly getting TLE....can anyone please confirm whether this problem demands even better solution or not?

View Article


TLE for Chef and Digits ADIGIT

Can anybody explain why is it TLE.http://www.codechef.com/viewsolution/4056614I have tried the same approach as mentioned in the editorial.And another Qs, does C++ program generally cause TLE as...

View Article

How to convert a HEX string to equivalent HEX or DEC number?

Let String s= "1A" and I want to assign equivalent HEX value 1A or DEC value 26 to a integer. What are some efficient way of doing it?like to decimal to string conversion is done by char c[10];...

View Article


how to display output

is it necessary to write the output of all test cases together after scanning the input?

View Article

Find out two number from a series which is composed by these two numbers

series 7,9,79,97,77,99,777,999

View Article


where is course seo the best??

Hi all.. //POST DELETED

View Article

Help with the algorithm please!

I found this question on a website.Your team is playing a chess tournament against a visiting team. Your opponents have arrived with a team of M players, numbered 1,2,…,M. You have N players, numbered...

View Article

Algorithms To Solve Problems and Books to Follow

Prime Miller RabinMatrix Recurrence + Fast Modulo Multiplication for countingStable Marriage ProblemGaussian EliminationNumerical Integration/DifferentiationLine ClippingAdvanced Maths Ad-Hoc...

View Article
Browsing all 39796 articles
Browse latest View live


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