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

Sumit_Raj's blog

By Sumit_Raj, history, 5 years ago, In English

166E - Tetrahedron

//Here is the solution for the problem 166E (Tetrahedron):

==================

  • Vote: I like it
  • 0
  • Vote: I do not like it

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

you can do it faster using matrix expo 49626730

»
4 years ago, # |
  Vote: I like it +1 Vote: I do not like it

why have you taken a picture of the code.....do you know you can paste your code in your blog with the paste code feature

»
4 years ago, # |
  Vote: I like it -8 Vote: I do not like it

Can Some one please Explain the sample test case for n = 4

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

can someone explain the logic?