diff options
Diffstat (limited to '01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit')
5 files changed, 17 insertions, 0 deletions
diff --git a/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/fibonacci_last_digit.cpp b/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/fibonacci_last_digit.cpp new file mode 100644 index 0000000..08e8dd8 --- /dev/null +++ b/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/fibonacci_last_digit.cpp @@ -0,0 +1,13 @@ +#include <iostream> + +int get_fibonacci_last_digit(int n) { + //write your code here + return 0; +} + +int main() { + int n; + std::cin >> n; + int c = get_fibonacci_last_digit(n); + std::cout << c << '\n'; +} diff --git a/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/01 b/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/01 new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/01 @@ -0,0 +1 @@ +3 diff --git a/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/01.a b/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/01.a new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/01.a @@ -0,0 +1 @@ +2 diff --git a/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/02 b/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/02 new file mode 100644 index 0000000..67e1dac --- /dev/null +++ b/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/02 @@ -0,0 +1 @@ +327305 diff --git a/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/02.a b/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/02.a new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/01-algorithmic_toolbox/01-intro/02-fibonacci_last_digit/tests/02.a @@ -0,0 +1 @@ +5 |