October LunchTime UNofficial Editorials (First two problems) Revised

That link was wrong! I changed it:D

Taran, sorry for posting that link which didn’t work. I updated it. Can you help me?

But i tested my code on clion and codechef compiler, it didn’t printed any leading zeroes.Could you please specify the test case in which it printed leading zeroes.

In problem maximum number in my code I am not able to figure out mistake.
It gives wrong answer on submission.

Can anyone help me debugging it.
Link to my code is

Here.

Please help :slight_smile:

The link that I gave before was not working , Sorry for that…
Now I updated the link

Try the test case

1

3602

Correct answer is 360

PS:what if last two digits are both even and last digit on deletion gives the maximum answer.

Enjoy coding :smiley:

Hey

Try the following test case

1

630

Correct answer is 60.

Enjoy coding :smiley: (PS:i won’t tell the bug)

i dont know why my code is getting wrong anser.
please help me;
link is https://www.codechef.com/viewsolution/16015871

Try test case

1

660

Correct answer 66, your answer 60

thanks,buddy

i dont know why my code is getting wrong answer, please help; link https://www.codechef.com/viewsolution/15998613

You cannot take a number with 10^5 digits as int data type. You have to take it as string.

Try following test case

1

11100000000000000000000

Enjoy

simply just check when sum of the digit >= 10 take mod of the ans and store it in an array during calculation in O(n) time then print the same

thanks much!

Hey can anyone plz tell me what’s wrong with this code?
https://www.codechef.com/viewsolution/15993064