CodeCraft-21 Problem A Editorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025
  • Problem: codeforces.com...
    Video Editorialist: codeforces.com...

ความคิดเห็น • 7

  • @samimhossainmondal8435
    @samimhossainmondal8435 3 ปีที่แล้ว

    I have also written a code for this solution but during the contest time it's showing Wrong Answer on Pretest 2 ..... why really don't know ..... it passed all the sample cases given in the question . Can you please tell me what's the wrong there ? If you tell I can share the code with you .

    • @kanishanand4337
      @kanishanand4337 3 ปีที่แล้ว +1

      Try to run the test case locally. I hope the test case is visible to you now.

    • @SushantKumar-ui3mn
      @SushantKumar-ui3mn 3 ปีที่แล้ว

      @@kanishanand4337 Same for me...locally it gave correct output

    • @kanishanand4337
      @kanishanand4337 3 ปีที่แล้ว

      @@SushantKumar-ui3mn Please share your CF submission link.

    • @samimhossainmondal8435
      @samimhossainmondal8435 3 ปีที่แล้ว

      @@kanishanand4337 yes i have run the test cases locally ... and after analysing it i have seen that the inputs which are only greater than 9 digits are giving garbage values expect that all other inputs are giving right outputs ... understood that something wrong is there in the code but can't debug it . I am sharing my cp submission link , if possible please tell me what's wrong in my code ! Thank You !!!
      Link : codeforces.com/submissions/i_am_sam (#111390654)

    • @samimhossainmondal8435
      @samimhossainmondal8435 3 ปีที่แล้ว +1

      @@kanishanand4337 okay okay got it ... actually i have taken integer data types to store the numbers .... my bad ... it should be long long int data type . Got it ! btw thank you so much for suggesting to run in local otherwise can't rectify it 😅