tcext4.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #include <stdint.h>
  2. int64_t pass1(int8_t arr[1]) {
  3. return arr[0];
  4. }
  5. int64_t pass2(int8_t arr[2]) {
  6. int i; int64_t sum = 0;
  7. for (i = 0; i < 2; i++) {
  8. sum += arr[i];
  9. }
  10. return sum;
  11. }
  12. int64_t pass3(int8_t arr[3]) {
  13. int i; int64_t sum = 0;
  14. for (i = 0; i < 3; i++) {
  15. sum += arr[i];
  16. }
  17. return sum;
  18. }
  19. int64_t pass4(int8_t arr[4]) {
  20. int i; int64_t sum = 0;
  21. for (i = 0; i < 4; i++) {
  22. sum += arr[i];
  23. }
  24. return sum;
  25. }
  26. int64_t pass5(int8_t arr[5]) {
  27. int i; int64_t sum = 0;
  28. for (i = 0; i < 5; i++) {
  29. sum += arr[i];
  30. }
  31. return sum;
  32. }
  33. int64_t pass7(int8_t arr[7]) {
  34. int i; int64_t sum = 0;
  35. for (i = 0; i < 7; i++) {
  36. sum += arr[i];
  37. }
  38. return sum;
  39. }
  40. int64_t pass8(int8_t arr[8]) {
  41. int i; int64_t sum = 0;
  42. for (i = 0; i < 8; i++) {
  43. sum += arr[i];
  44. }
  45. return sum;
  46. }
  47. int64_t pass9(int8_t arr[9]) {
  48. int i; int64_t sum = 0;
  49. for (i = 0; i < 9; i++) {
  50. sum += arr[i];
  51. }
  52. return sum;
  53. }
  54. int64_t pass15(int8_t arr[15]) {
  55. int i; int64_t sum = 0;
  56. for (i = 0; i < 15; i++) {
  57. sum += arr[i];
  58. }
  59. return sum;
  60. }
  61. int64_t pass16(int8_t arr[16]) {
  62. int i; int64_t sum = 0;
  63. for (i = 0; i < 16; i++) {
  64. sum += arr[i];
  65. }
  66. return sum;
  67. }
  68. int64_t pass17(int8_t arr[17]) {
  69. int i; int64_t sum = 0;
  70. for (i = 0; i < 17; i++) {
  71. sum += arr[i];
  72. }
  73. return sum;
  74. }
  75. int64_t pass24(int8_t arr[24]) {
  76. int i; int64_t sum = 0;
  77. for (i = 0; i < 24; i++) {
  78. sum += arr[i];
  79. }
  80. return sum;
  81. }
  82. int64_t pass31(int8_t arr[31]) {
  83. int i; int64_t sum = 0;
  84. for (i = 0; i < 31; i++) {
  85. sum += arr[i];
  86. }
  87. return sum;
  88. }
  89. int64_t pass32(int8_t arr[32]) {
  90. int i; int64_t sum = 0;
  91. for (i = 0; i < 32; i++) {
  92. sum += arr[i];
  93. }
  94. return sum;
  95. }
  96. int64_t pass33(int8_t arr[33]) {
  97. int i; int64_t sum = 0;
  98. for (i = 0; i < 33; i++) {
  99. sum += arr[i];
  100. }
  101. return sum;
  102. }