编辑代码

//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
import java.util.zip.CRC32;
class Greet {
	Greet() { }
	def salute() { 
	    CRC32 crc32 = new CRC32();
        crc32.update('E20201126101150053204211'.getBytes());
        long shardingId = crc32.getValue()%1024;
	    println shardingId;

	    
 }
}
 
g = new Greet()  // create object
g.salute()