diff options
Diffstat (limited to 'InsomiaCure')
| -rw-r--r-- | InsomiaCure/inp | 0 | ||||
| -rwxr-xr-x | InsomiaCure/main | bin | 0 -> 22576 bytes | |||
| -rw-r--r-- | InsomiaCure/main.cpp | 17 | ||||
| -rw-r--r-- | InsomiaCure/main_input0.txt | 5 | ||||
| -rw-r--r-- | InsomiaCure/main_input1.txt | 5 | ||||
| -rw-r--r-- | InsomiaCure/main_output0.txt | 1 | ||||
| -rw-r--r-- | InsomiaCure/main_output1.txt | 1 |
7 files changed, 29 insertions, 0 deletions
diff --git a/InsomiaCure/inp b/InsomiaCure/inp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/InsomiaCure/inp diff --git a/InsomiaCure/main b/InsomiaCure/main Binary files differnew file mode 100755 index 0000000..bec1e3a --- /dev/null +++ b/InsomiaCure/main diff --git a/InsomiaCure/main.cpp b/InsomiaCure/main.cpp new file mode 100644 index 0000000..7feef4a --- /dev/null +++ b/InsomiaCure/main.cpp @@ -0,0 +1,17 @@ +#include <bits/stdc++.h> + +using namespace std; + +int main() { + ios_base::sync_with_stdio(false); + cin.tie(NULL); + int k, l, m, n, d; + cin >> k >> l >> m >> n >> d; + int ans = 0; + for (int i = 1; i <= d; i++) { + if (i % m == 0 || i % k == 0 || i % n == 0 || i % l == 0) { + ans++; + } + } + cout << ans << endl; +} diff --git a/InsomiaCure/main_input0.txt b/InsomiaCure/main_input0.txt new file mode 100644 index 0000000..ed6b76a --- /dev/null +++ b/InsomiaCure/main_input0.txt @@ -0,0 +1,5 @@ +1 +2 +3 +4 +12 diff --git a/InsomiaCure/main_input1.txt b/InsomiaCure/main_input1.txt new file mode 100644 index 0000000..6bdc8a5 --- /dev/null +++ b/InsomiaCure/main_input1.txt @@ -0,0 +1,5 @@ +2 +3 +4 +5 +24 diff --git a/InsomiaCure/main_output0.txt b/InsomiaCure/main_output0.txt new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/InsomiaCure/main_output0.txt @@ -0,0 +1 @@ +12 diff --git a/InsomiaCure/main_output1.txt b/InsomiaCure/main_output1.txt new file mode 100644 index 0000000..98d9bcb --- /dev/null +++ b/InsomiaCure/main_output1.txt @@ -0,0 +1 @@ +17 |
