Format integers Sergey Svistunov

Compute a checksum over the decimal representations of binary integers as fast as possible.

Input: 250 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: A uint64 checksum computed as:

CRC = sum of number_crc(n) for each n

where number_crc(n) converts n to its decimal string and sums ascii(digit) * position over each digit (0-indexed from the left).

Example: For n = 42, the decimal string is "42", so number_crc(42) = ascii('4') * 0 + ascii('2') * 1 = 52 * 0 + 50 * 1 = 50.

Back to listMay 12, 2021 20:44Yuriy LyfenkoYuriy LyfenkoError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 12, 2021 22:2200000exit with code 2: unexpected fault address 0xc1db50a48c fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc1db50a48c pc=0x55db0ee81219] goroutine 1 [running]: runtime.throw(0x55db0ee8235c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
2May 12, 2021 22:2500000exit with code 2: unexpected fault address 0xc1a04a0724 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc1a04a0724 pc=0x558dbf19d219] goroutine 1 [running]: runtime.throw(0x558dbf19e35c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
3May 12, 2021 22:2400000exit with code 2: unexpected fault address 0xc0467a6dc8 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc0467a6dc8 pc=0x5629a52b2219] goroutine 1 [running]: runtime.throw(0x5629a52b335c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
4May 12, 2021 22:2400000exit with code 2: unexpected fault address 0xc1766adab0 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc1766adab0 pc=0x563c26545219] goroutine 1 [running]: runtime.throw(0x563c2654635c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
5May 12, 2021 22:2400000exit with code 2: unexpected fault address 0xc02beea944 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc02beea944 pc=0x563b09ccb219] goroutine 1 [running]: runtime.throw(0x563b09ccc35c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
6May 12, 2021 22:2300000exit with code 2: unexpected fault address 0xc15e9c5514 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc15e9c5514 pc=0x56231b900219] goroutine 1 [running]: runtime.throw(0x56231b90135c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
7May 12, 2021 22:2300000exit with code 2: unexpected fault address 0xc1d819f8d8 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc1d819f8d8 pc=0x556b69a87219] goroutine 1 [running]: runtime.throw(0x556b69a8835c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
8May 12, 2021 22:2300000exit with code 2: unexpected fault address 0xc01eb907d4 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc01eb907d4 pc=0x555d56f43219] goroutine 1 [running]: runtime.throw(0x555d56f4435c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
9May 12, 2021 22:2300000exit with code 2: unexpected fault address 0xc13fe08050 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc13fe08050 pc=0x55bc51338219] goroutine 1 [running]: runtime.throw(0x55bc5133935c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
10May 12, 2021 22:2200000exit with code 2: unexpected fault address 0xc1c1222f90 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc1c1222f90 pc=0x55de19736219] goroutine 1 [running]: runtime.throw(0x55de1973735c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
11May 12, 2021 20:4400000exit with code 2: unexpected fault address 0xc15ea722f0 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc15ea722f0 pc=0x561d6093c219] goroutine 1 [running]: runtime.throw(0x561d6093d35c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
12May 12, 2021 22:2200000exit with code 2: unexpected fault address 0xc1d92fe71c fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc1d92fe71c pc=0x5642f05d5219] goroutine 1 [running]: runtime.throw(0x5642f05d635c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
13May 12, 2021 22:2200000exit with code 2: unexpected fault address 0xc18c88b290 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc18c88b290 pc=0x56001e046219] goroutine 1 [running]: runtime.throw(0x56001e04735c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
14May 12, 2021 22:2100000exit with code 2: unexpected fault address 0xc13e807448 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc13e807448 pc=0x55de614e5219] goroutine 1 [running]: runtime.throw(0x55de614e635c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
15May 12, 2021 20:5400000exit with code 2: unexpected fault address 0xc1401a0644 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc1401a0644 pc=0x55d316737219] goroutine 1 [running]: runtime.throw(0x55d31673835c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
16May 12, 2021 20:5300000generator exited with code 1: 1009888771 cannot delete cgroup: Cgroup has not been created
17May 12, 2021 20:4900000exit with code 2: unexpected fault address 0xc0bcf0d47c fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc0bcf0d47c pc=0x55c530b7d219] goroutine 1 [running]: runtime.throw(0x55c530b7e35c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
18May 12, 2021 20:4900000exit with code 2: unexpected fault address 0xc1a3096c84 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc1a3096c84 pc=0x555618c90219] goroutine 1 [running]: runtime.throw(0x555618c9135c, 0x5) /usr/lib/go-1.13/src/runtime/pa...
19May 12, 2021 20:4400000exit with code 2: unexpected fault address 0xc0513e6300 fatal error: fault [signal SIGSEGV: segmentation violation code=0x1 addr=0xc0513e6300 pc=0x55e1539f8219] goroutine 1 [running]: runtime.throw(0x55e1539f935c, 0x5) /usr/lib/go-1.13/src/runtime/pa...