Skip to content

Commit

Permalink
1795 C
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPLopes committed Dec 31, 2019
1 parent a9efd1e commit b392020
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions C/1795.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <stdio.h>
#include <math.h>

typedef long long int lld;

lld trinomialSum(lld level)
{
return pow(3, level);
}
int main(int argc, char const *argv[])
{
lld level = 0;

scanf("%lld", &level);

printf("%lld\n", trinomialSum(level));

return 0;
}

0 comments on commit b392020

Please sign in to comment.