diff --git a/AcWing/714/714.cpp b/AcWing/714/714.cpp new file mode 100644 index 00000000..43bf20ad --- /dev/null +++ b/AcWing/714/714.cpp @@ -0,0 +1,23 @@ +#include + +using std::cin; +using std::cout; +const char endl = '\n'; + +int x, y, ans; + +int main() { + std::ios::sync_with_stdio(false); + + cin >> x >> y; + + if (y < x) std::swap(x, y); + + for (int i = x + 1; i < y; i++) { + if (i & 1) ans += i; + } + + cout << ans << endl; + + return 0; +}