Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Bez królików
#include <iostream> using namespace std; int testy,l,tab[120]={4,7}; int main() { cin>>testy; for(int i=0; i<testy; i++) { cin>>l; for(int j=2;j<=l;j++) { tab[j] = (2*tab[j-1]%2011+5*tab[j-2]%2011)%2011; } cout<<tab[l]<<endl; } }
run
|
edit
|
history
|
help
0
Exploring the Transform Function and Operator Classes
156
MinCostKStops_BFS
Conjuntos - Comparar cantidad de elementos únicos en 2 vectores
20201123
Merge problem
integerDivision
InverseMatrix2n2
P1
ListTel