Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
synowie abrahama
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#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; } }
g++
4 16
Show compiler warnings
[
+
] Compiler args
[
-
]
Show input
Compilation time: 0.53 sec, absolute running time: 0.13 sec, cpu time: 0.07 sec, memory peak: 3 Mb, absolute service time: 0,67 sec
edit mode
|
history
|
discussion
0 0 0 0