NCPC2012G SHA-4
Problem G SHA-4 Input File: pg.in Time Limit: 3 seconds This is a new hash algorithm invented for NCPC 2012, called SHA4 (simple hash algorithm version 4). Given a message string M, the SHA4 will hash the string into a 160 bits value...