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
Binary Search
str_to_int
maximum nights you can accommodate
Vector
MapTel2
articulation points and bridges
Rev Fact WIP
Dijkastra
list_of pair strings
1234