fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long a,b,n;
  6. cin>>a>>b>>n;
  7. long long h=n*(a*100+b);
  8. long long e=h/100;
  9. long long f=h%100;
  10. cout<<e<<" "<<f;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5376KB
stdin
1 1 1
stdout
1 1