fork download
  1. #include <stdio.h>
  2.  
  3. int find_way(int x, int y) {
  4. if(x==1||y==1)
  5. return 1;
  6. return find_way(x-1,y)+find_way(x,y-1);
  7. return 0;
  8. }
  9. int main()
  10. {
  11. int row,col;
  12. scanf("%d%d",&row,&col);
  13. printf("\n%d",find_way(row,col));
  14. }
  15.  
Time limit exceeded #stdin #stdout 5s 5926432KB
stdin
Standard input is empty
stdout
Standard output is empty