Untitled

Anonymous
c_cpp
08/13/2023 1:47 PM
304 B
16
Indexable
#include <iostream>

const int ROW = 12;

using namespace std;

int hashFunction(int x) {
    return x % ROW;
}

int main () {

    int x;

    cin >> x ;

    cout << hashFunction(x) << endl;

    return 0;
}
Editor is loading...