Skip to content

Instantly share code, notes, and snippets.

@RexYuan
RexYuan / gr10k.md
Last active December 23, 2025 23:42
Stockists
#include <stdio.h>
int prize(int specialPrizeNumbers[3], int firstPrizeNumbers[3], int myNumber) {
int n[3] = {0, 0, 0}; //Number of digits same as the number in every set of firstPrizeNumber in reverse order
int i;
int dollar = 0; //The prize for this iteration
int temp[8]; //Argument of a function, if it's an array, unlike a variable, it will change its value because
//it's linked to the address of the array itsel.
for(i=0; i<8; i++){
temp[i] = firstPrizeNumbers[i];