Source code for submission s494

f1.cpp

  1. #include <stdio.h>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main(void){
  6. char one, backsl;
  7. int in;
  8. while(cin >> one >> backsl >> in){
  9. int counter = 0;
  10. if(in == 1){
  11. cout << "1" << endl;
  12. continue;
  13. }
  14. for(int x = in + 1; x < in*2; x++){
  15. if(!((x*in)%(x-in))){
  16. counter++;
  17. }
  18. }
  19. counter++;
  20. cout << counter << endl;
  21. }
  22. }
  23.