fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. int n;
  5. std::cin >> n;
  6. std::cout << n * 1000 << "g\n";
  7. std::cout << n * 0.001 << "t\n";
  8. }
Success #stdin #stdout 0s 4500KB
stdin
20
stdout
20000g
0.02t