Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
228 B
1
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;
}