Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int S, V, T;
  8.     cin>>V;
  9.     cin>>T;
  10.     S=V*T;
  11.     if (S<0){
  12.         S=-1*S;
  13.     }
  14.     S=S%109;
  15.     if (V<0){
  16.         S=109-S;
  17.     }
  18.     cout << S;
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement