fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int g,e,p;
  6. cin>>g>>e>>p;
  7. cout<<(g*3+e)<<endl;
  8. return 0;
  9. }
Success #stdin #stdout 0s 5320KB
stdin
3 0 0
stdout
9