fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x,y;
  6. cin>>x>>y;
  7. cout<<x*5-4+60*(y-1970);
  8. return 0;
  9. }
Success #stdin #stdout 0s 3472KB
stdin
7 1998

stdout
1711