fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6. int ThinningFactor = 4;
  7. int SampleCount = 24;
  8. int SVSampleCount = 96;
  9. int smpCntRaw = 100;
  10. int index = (smpCntRaw / ThinningFactor) % SampleCount;
  11. int index2 = smpCntRaw % SVSampleCount;
  12. printf("%d %d", index, index2);
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 5312KB
stdin
45
stdout
1 4