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

PROSUM - Editorial

PROBLEM LINK:PracticeContestAuthor:Vivek HamirwasiaTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:Simple MathPROBLEM:Given a sequence of numbers A[1..N], find the number...

View Article


wa in abcstr

#include<string.h> #include <stdio.h> int main() { long long int m,n,s=0,a=0,b=0,c=0,i,j,k; char arr[1000000],ch; scanf("%s",arr); m=strlen(arr); if((m%3)==0) n=m; else if(((m-1)%3)==0)...

View Article


Image may be NSFW.
Clik here to view.

BINTOUR - Editorial

PROBLEM LINK:PracticeContestAuthor:Constantine SokolTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:EasyPREREQUISITES:CombinationPROBLEM:For each of 2^K players labeled by 1 .. 2^K, how many...

View Article

Square digit squares: getting wa

http://www.codechef.com/viewsolution/3646160 kindly help :)

View Article

why tags dont cover all questions

why in codechef , there isnt any tool which is in spoj and which classifies each question i.e. the category of question (like dp easy,kmp ,medium etc etc ) is written against each question . more...

View Article


count of maximum | giving wrong answer despite of several fruitfull test cases

i don't understand why my code is giving wrong answer it is producing correct results for all test cases provided at question page and in forums.. please help#include <stdio.h> int main() { int...

View Article

why did this PROSUM solution not get accepted?

this solution for PROSUM gave a wrong answer... i dont understand why, while the same solution with the data type changed long long int got accepted. Why did the first solution not get...

View Article

How to write a c Program To Check The Order Of Opening And Closing Brackets?

How to write a c Program To Check The Order Of Opening And Closing Brackets? eg- ((()())) 1.how to check whether this patter will be true or false ?

View Article


String Length

How to find the string length without using loop and library function in c?

View Article


Trie tree implementation

hello guys ,i face problem in implementation of trie tree,can anyone provide good material for trie tree. I am beginner in string data structure so please guide me.

View Article

most dinstance points problem

Find the distance between the most distant points in c++... how to solve this problem...

View Article

Help in Mobius Inversion

Is there an efficient algorithm for Mobeius Inversion Function?If yes,then how to implement it?

View Article

Does CodeChef have any Code Of Conduct?

I am new to CodeChef. I am not sure what can be considered as an improper conduct on this website. I do not want to be penalized for doing something unknowingly which is not the accepted behavior. Is...

View Article


help me please

hello I need to solve this problem. please help me. I have to solve this problem immideately http://www.e-olimp.com/en/problems/1593please solve this problem for me...

View Article

lucky strings problem

Certain letters of the alphabet are "lucky". The first "lucky" letter of the alphabet is "a", and every 2nd letter after a is also considered "lucky". In this way lucky letters include "a", "c", "e",...

View Article


ABC string WA!!

I have read the editorial before implementing this.But I don't know what I'm missing:#include<cstdio> #include<iostream> #include<cstring> #include<map> using namespace std;...

View Article

Anybody tell me that why Compiler gives a WRONG answer in codechef???

http://ideone.com/VWXZKz

View Article


getting wrong ans in THE LEAD GAME .HELP!!!!

cannot find what is wrong with this code of question link text . workng for most of the test cases i tried on my pc still getting wrong answer with codechef compiler . help !! include<stdio.h>int...

View Article

MINXOR - Editorial

PROBLEM LINK:PracticeContestAuthor:Konstantin SokolTester:Gerald AgapovEditorialist:Tasnim Imran SunnyDIFFICULTY:MediumPREREQUISITES:Sqrt decomosition, TriePROBLEM:Given an array A of N integers, you...

View Article

please help in debugging the C program

char input[20]; volatile bit rx_event; void interrupt() { if (PIR1.RCIF) { UART1_Read_Text(input, "\r", 20); rx_event=1; }void main() {short Start_up=0; short i; OSCCON.b6=1; OSCCON.b5=1; OSCCON.b4=0;...

View Article
Browsing all 40121 articles
Browse latest View live


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