fork download
  1. #include <bits/stdc++.h>
  2. #define INF INT_MAX
  3. #define miniF INT_mini
  4. #define ll long long
  5. #define ull unsigned long long
  6. #define ld long double
  7. #define PB push_back
  8. #define PF push_front
  9. #define P_F pop_front
  10. #define P_B pop_back
  11. #define F front
  12. #define B back
  13. #define f first
  14. #define s second
  15. #define MP make_pair
  16. #define FOR(i, a, b) for(ll i = a; i < b; i++)
  17. #define FORI(i, a, b) for(ll i = a; i >= b; i--)
  18. #define PI 3.14159265358979323846
  19.  
  20. using namespace std;
  21.  
  22. const ld EPSILON = 0.0000001;
  23.  
  24. int main() {
  25. ios_base::sync_with_stdio(false);
  26. cin.tie(NULL);
  27. cout.tie(NULL);
  28.  
  29. int v, t;
  30.  
  31. while(cin >> v >> t) {
  32. cout << v*t*2 << '\n';
  33. }
  34.  
  35. return 0;
  36. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty