When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

Night_Lord's blog

By Night_Lord, history, 3 years ago, In English

Hi coders,getting wa in this problem.My submission is here .Any idea?

  • Vote: I like it
  • -3
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Does anybody who seeking help get downvote ?

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    If you can answer yourself by googling, you are likely to get downvoted.

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

CSES submissions are private. I can't view your link. Did you use Fermat's theorem? Take help from here.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thanks

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I just want to mention that there’s a “share code to others” link on the cses submission page. You can use that to share you’re code but we won’t be able to see what test cases you passed or failed.