UVA12470 Tribonacci

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3914 [PDF](https://uva.onlinejudge.org/external/124/p12470.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12470/4f23161835010a90f944a0b1ae366897f8921d42.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12470/5b9c69344ba0dd229a994c2cc479efe71e3f6df3.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12470/95224bb7939fd2ab5e58eb6e7ac88616b56354b3.png)