diff options
Diffstat (limited to '19/cpp/01-1.cpp')
| -rw-r--r-- | 19/cpp/01-1.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/19/cpp/01-1.cpp b/19/cpp/01-1.cpp new file mode 100644 index 0000000..fcb593a --- /dev/null +++ b/19/cpp/01-1.cpp @@ -0,0 +1,8 @@ +#include<iostream> + +int main() { + int mass, sum = 0; + while (std::cin >> mass) sum += (mass / 3) - 2; + std::cout << sum << std::endl; +} + |
