fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int v,t,s,k;
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. int main(){
  13. // freopen("input.txt", "r", stdin);
  14. // freopen("output.txt", "w", stdout);
  15.  
  16. cin >> v >> t;
  17.  
  18. s=v*t;
  19.  
  20. k=s%109;
  21.  
  22. if (k>=0) {cout<<(k+1)%109;}
  23.  
  24. else {cout<<110+k;}
  25.  
  26.  
  27.  
  28. return 0;
  29. }
Success #stdin #stdout 0s 544KB
stdin
60 2
stdout
12