"I want to ask a question" - Ask them all here!

QUESTION REGARDING : FIND THE MAXIMUM VALUE ( LOST MAX )
alt text

alt text

FIRST IS TESTER SOLUTION SECOND IS MY SOLUTION LINK JUST SEE LAST LOOP TO FIND MAX ELEMENT AND IGNORE USE OF stl sort in my solution when I submitted it says WA and when I use test logic of bool variable it accepts the solution ?? I want to know why my solution failed ?? and how do I gain reputation so I can ask question on my own ?? how to get karma ??? thx
Best Regards
Syed Ashar Ali

1 Like

Hey, kunnu120, was your question answered? I noticed you deleted it when i was converting it into a independent question.

1 Like

Hey i am new here… have done coding before but new in these online coding field.Can you tell me how to approach the constraints placed in various questions?How should approach handling such an constraint related error? I mean the program I have written for a particular problem runs well in my machine but when submitted here says its incorrect. I have entered all the sample inputs as given and its running well for me at home.

On this recent cookoff, the contest length was 2.5 hours but people have submission times (on just one problem, not a sum) of 4-6 hours. Secondly, some problem had a time limit of 3 seconds but some submissions were 5 seconds. Are those types of stats displayed accurately? Or do those limits not really apply?

can anyone tell me from where i should study to solve questions related to trees and graphs ???

How to guess whether code will run in given time or not or will run for specific input (such as large size array)?

In the question Lazy Jem, I cant get outputs like 131351258112.I’m programming in C.Can anybody please teach me how to store large numbers in an array? Please help me.

https://www.codechef.com/viewsolution/15482446.This is my attempt at Discrepancies in the Voters List.I’m getting a TLE.Please help me!!.This is urgent.(for me)

I’m a beginner at java. I wanted to know how the nextLine() Method discards your current input? For example assume the following code:

{
Scanner input = new Scanner(System.in);

int a = input.nextInt();

input.next();
}

After the input.next() is executed, the value in “input” is discarded. I wanted to know how does it work?

pls help guys

can anyone please tell me whats wrong with my code?

problem: FLOW007 Problem - CodeChef

my code: CodeChef: Practical coding for everyone

thx in advance.

HI all,how to report for this question?
The picture in the question is not showing.

Question

can anyone please tell me whats wrong with my code?

problem : PRB01 Problem - CodeChef

code: CodeChef: Practical coding for everyone

can anyone tell me what wrong in my codes?

  1. problem : HEADBOB Problem - CodeChef
    CODE: CodeChef: Practical coding for everyone

  2. (got 40 points) problem: SMPAIR Problem - CodeChef
    CODE: CodeChef: Practical coding for everyone

In the score based ranking system(in Long Contests), whose name appears first in case of ties?? I know it doesnt matter as ranks are similar, just asking out of curiosity coz its neither alphabetical wise nor rating wise.

@divyansh_gaba7

Okay, I see the issue. Send them a screenshot of your payment (the one with UTR number as well). That will safeguard you against ALL such issues, and will be your proof that you did payment on time [hence they will HAVE to accept.]

Most probably, the delay is expected, but yeah, do take the precaution and send them a screenshot. Hope your issue gets resolved soon :slight_smile:

EDIT: I suspect that the delay is because 15th Oct was the last date. If they’re saying that it will take 3-4 days, the I think its ok, there shouldnt be any issues. Just make yourself “Safe” and “foolproof” by sending a screenshot as well. I have heard it worked very well (I got accepted in an hour after sending the screenshot). The thing is, there can be mistake while typing your UTR number, or perhaps what you copy-pasted isnt the UTR number but something else (like reference number etc.). To safeguard against these fallacies, its better to send a screenshot.

1 Like

https://www.codechef.com/CODP2017

The problems in the above contest are copied from codeforces and hackerrank.

Even problem statments are not changed, so simply googling the statement would fetch you the code.

I am not expecting comments like “a honest coder would not copy” and statements like that.

Thank you.

While performing the Modular Arithmetic Operation (A%B) : Why is B Usually Given as a prime number ?

What is error in my code?

https://www.codechef.com/viewsolution/15998961

I am getting run-time error. I tried too much to find where i am getting this but failed.
please help me. this is my code–>
this is Octomber lunchyime problem 2 MAXNUM3
https://www.codechef.com/viewsolution/15994545
thank you

Can someone explain what WA means for executing the codes for the contest. I won’t ask for help with the code. I just want to know how the competition works and how does the code execution take place for checking my answer submission. Thanks.