[SPOJ] HASHIT – Hash it!

原题: http://www.spoj.com/problems/HASHIT/ 题目大意:设计个一个hash函数, 可以insert, exist 和 delete. 然后通过执行一系列命令, 返回key的数量和table的内容. 分析: 这里需要注意的是nextpos的函数需要mod 101, public class hashit { final int mod = 101; final int num = 19; int count = 0; String[] hash = new String[mod]; public void solve(int testNumber, InputReader in, OutputWriter out) { reset(); int m = in.readInt(); for (int i = 0; i < […]