diff options
Diffstat (limited to '01-algorithmic_toolbox/02-greedy_algorithms/01-change')
5 files changed, 16 insertions, 0 deletions
diff --git a/01-algorithmic_toolbox/02-greedy_algorithms/01-change/change.cpp b/01-algorithmic_toolbox/02-greedy_algorithms/01-change/change.cpp new file mode 100644 index 0000000..e25cd67 --- /dev/null +++ b/01-algorithmic_toolbox/02-greedy_algorithms/01-change/change.cpp @@ -0,0 +1,12 @@ +#include <iostream> + +int get_change(int n) { + //write your code here + return n; +} + +int main() { + int n; + std::cin >> n; + std::cout << get_change(n) << '\n'; +} diff --git a/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/01 b/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/01 new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/01 @@ -0,0 +1 @@ +2 diff --git a/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/01.a b/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/01.a new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/01.a @@ -0,0 +1 @@ +2 diff --git a/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/02 b/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/02 new file mode 100644 index 0000000..9902f17 --- /dev/null +++ b/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/02 @@ -0,0 +1 @@ +28 diff --git a/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/02.a b/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/02.a new file mode 100644 index 0000000..1e8b314 --- /dev/null +++ b/01-algorithmic_toolbox/02-greedy_algorithms/01-change/tests/02.a @@ -0,0 +1 @@ +6 |