Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int S, V, T;
- cin>>V;
- cin>>T;
- S=V*T;
- if (S<0){
- S=-1*S;
- }
- S=S%109;
- if (V<0){
- S=109-S;
- }
- cout << S;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement