fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int v, t;
  6.  
  7. cin >> v >> t;
  8. cout << 1 % 108 << " ";
  9. cout << abs(v * t) % 108;
  10. return 0;
  11. }
Success #stdin #stdout 0s 5328KB
stdin
-1 1
stdout
1 1