Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main(){
- ios_base::sync_with_stdio(0);
- cin.tie(0);
- int a, b, c, d;
- string s;
- char z;
- cin >> s >> a >> z >> b >> z >> c >> z >> d;
- cout << d + 12 * c + 20 * 12 * b + 100 * 20 * 12 * a;
- }
Advertisement
Add Comment
Please, Sign In to add comment