fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long n, m, k, a1, a2;
  6. cin >> n >> m >> k;
  7. a1=0;
  8. a2=0;
  9. while(n>0){
  10. a2=k-m;
  11. a1=m-a2;
  12. n=n-2;
  13. }
  14. cout << a1 << " " << a2;
  15. return 0;
  16. }
Success #stdin #stdout 0s 4412KB
stdin
Standard input is empty
stdout
-94778486284928 94778486284928