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

A Hack found in the problem "OETW" of September Cook off

For the test case 52 1 2 2 2The answer has to be 8 because any contiguous subsequence of the array cannot give the sum to be 8.So from 1 to 9 there are only 8 possible sums(1 to 7 and 9) and hence the...

View Article


Getting started here, questions about strategy, etiquitte, etc.

Hi guys. I've just started here, I have a few questions about how I approach this place. Firstly, let me just say that wow - some of the problems here are pretty difficult, even for easy!Alright, so...

View Article


No questions in practice session?

I've been trying to access the practice questions on codechef but the list is just flat-out empty every time I open it. Anyone else facing this issue?

View Article

OneTwo, OneTwo, testing.. unofficial editorial OETW

Since there's a lot of discussion on this problem, I thought I'd share my technique:Problem pages:Div1 contestDiv2 contestPracticeProblem statement: Find the number of distinct sums of contiguous...

View Article

placeholder text in html

what is "LOREM IPSUM" and PLACEHOLDEr? What is their use? When and Where they are used?

View Article


September Mega Cookoff , Hey sparky ....

Hello community,I know in September Mega Cookoff we had a lot of difficulties in submitting the solutions or seeing things. But somewhere,we were responsible for this event. There were at least 3000+...

View Article

Codeforces Round 512 DIV2 Problem-C help

I used a recursive function to check whether the chosen sum equals to the sum of individual segments.The pretests passed successfully but it gave wrong answer on test 17 after system testing. Here is a...

View Article

Help setting up MERN app on Alibaba ECS

I'm trying to deploy my web app on Alibaba's ECS Ubuntu Instance. I have already trasnferred files to instance and the server runs on the instance. But I'm unbale to access it from my local machine's...

View Article


Wrong Answer Checking in September Mega Cook-Off.

For the question OneTwo (CODE:OETW), one user had submitted an incorrect answer which fails for the given example test case itself, but was adjudged as correct. I wish not to reveal the persons name,...

View Article


GHVSSI - EDITORIAL

PROBLEM LINK:PracticeContest: Division 1Contest: Division 2Setter:Jafar BadourTester:HussainEditorialist:Taranpreet SinghDIFFICULTY:Easy-mediumPREREQUISITES:Number-theory, Game Theory Minimax...

View Article

UPDOTR - EDITORIAL

PROBLEM LINK:PracticeContest: Division 1Contest: Division 2Setter:DOlaBMOonTester:HussainEditorialist:Taranpreet SinghDIFFICULTY:Easy-MediumPREREQUISITES:DFS or BFS, DP on trees and Binary...

View Article

OETW - EDITORIAL

PROBLEM LINK:PracticeContest: Division 1Contest: Division 2Setter:DOlaBMOonTester:HussainEditorialist:Taranpreet SinghDIFFICULTY:EasyPREREQUISITES:Prefix SumPROBLEM:Given an array $A$ consisting of...

View Article

ATM2 - EDITORIAL

PROBLEM LINK:PracticeContest: Division 1Contest: Division 2Setter:Jafar BadourTester:HussainEditorialist:Taranpreet SinghDIFFICULTY:CakewalkPREREQUISITES:None at all (what did you expect?? :D)PROBLEM:A...

View Article


MAKPERM - EDITORIAL

PROBLEM LINK:PracticeContest: Division 1Contest: Division 2Setter:Jafar BadourTester:HussainEditorialist:Taranpreet SinghDIFFICULTY:SimplePREREQUISITES:Observation would be enough.PROBLEM:Given array...

View Article

Image may be NSFW.
Clik here to view.

TABGAME - Editorial

PROBLEM LINK:Div1Div2PracticeSetter-Oleksandr KulkovTester-Teja Vardhan ReddyEditorialist-Abhishek PandeyDIFFICULTY:EASYPRE-REQUISITES:Observations, Strings, 2-D arrays, Game Theory.PROBLEM:Given $2$...

View Article


How to find sum of sizes of all cycles in a small graph ?

Given a connected undirected graph with 1 <= n <= 100 nodes and n-1 <= m <= 100 edges, you need to tell the sum of sizes of all cycles in it. The best I could think of was bitmasks, but it...

View Article

need solution for project

I'm currently working on my college project. My project is to provide localplatform like codechef to host coding compitition type event(like online judge system) in college.So i'm finding solution for...

View Article


Snackdown teammate

Looking for someone who would participate along with me in snackdown 2019.

View Article

Best Way to Check if a Number Z can be expressed as Difference of 2 Perfect...

I am trying to Solve problem Ghayeeth vs Siroj GHVSSI from Sep Mega Cook Off 2018I figured out that if a number Z is divisible by 4 or it is an odd number then it can be expressed as a^2−b^2 But this...

View Article

Next Palindrome problem - PALIN

Please help me optimize this code. Also please suggest me tips for competitive coding in python 3.def nextPal(n): n = str(int(n)) if (n=='9'): return 11 if(n=='99'): return 101 l = len(n) if(l<2):...

View Article
Browsing all 39796 articles
Browse latest View live


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