NOJ/26/main.c
Saturneric 52668c4122 Add.
2020-09-01 00:46:43 +08:00

16 lines
230 B
C

#include <stdio.h>
int main(void){
int i,t;
scanf("%d",&t);
unsigned long long t_a,t_b,a = 1, b = 0;
for(i = 0; i < t; i++){
t_a = 3 * a;
t_b = 2 * b;
a = b;
b = t_a + t_b;
}
printf("%llu %llu\n",a,b);
return 0;
}