Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 496
2024-10-17
Log In
Contact Us
College
Sponsors
Donate
Sources
C++ 14
#include <bits/stdc++.h> using namespace std; int main() { long long a, b; cin >> a >> b; if (abs(b - a) % 12 != 0) cout << -1 << '\n'; else cout << (a + b) * 13 / 2 << '\n'; return 0; }