Source code for submission s646

fl.cpp

  1. //
  2. // File: fs.cc
  3. // Author: cteam008
  4. //
  5. // Created on October 19, 2013, 10:50 AM
  6. //
  7.  
  8. #include <stdlib.h>
  9. #include <stdio.h>
  10. #include <iostream>
  11.  
  12. using namespace std;
  13. //
  14. //
  15. //
  16. int main(int argc, char** argv) {
  17. int n,counter;
  18. char c;
  19. while (cin >> counter >> c >> n) {
  20. counter = 0;
  21. for (int y = n+1; y <= 2*n; y++) {
  22. if ((n*y)%(y-n)==0) {
  23. counter++;
  24. }
  25. }
  26. cout << counter << endl;
  27. }
  28. return (EXIT_SUCCESS);
  29. }
  30.