Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
synowie abrahama
#include <iostream> using namespace std; int x,k,tab[25]={0,7},KC[20]; int testy,pok; int main() { cin>>testy; for(int i=2;i<21;i+=2) { tab[i]=5*tab[i-1]; tab[i+1]=3*tab[i]; } for(int i=1;i<16;i++) { KC[i]=KC[i-1]+tab[i]; } for(int i=0;i<testy;i++) { cin>>x; cout<<KC[x]<<endl; } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
dsu on tree(264E BLOOD COUSIN RETURNS)
typedef 2
P1
single_digit
005#
Gauss v0.1
horse aand goat working
tree
Aplicatie-Proiect
binary
stackse - search stackoverflow differently
Please log in to post a comment.