Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- public class Jenkins {
- public static void main(String[] args) {
- BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
- int ch;
- int hash = 0;
- try {
- while(true) {
- ch = br.read();
- if(ch == -1) break;
- hash += ch;
- hash += hash << 10;
- hash ^= hash >>> 6;
- }
- hash += hash << 3;
- hash ^= hash >>> 11;
- hash += hash << 15;
- br.close();
- } catch (IOException e) {
- e.printStackTrace();
- }
- System.out.println(Integer.toUnsignedString(hash, 16));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement