Untitled

mail@pastecode.io avatarunknown
c_cpp
a month ago
228 B
0
Indexable
Never
#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;
}