Parse dateTime Andrey Tsvetkov

Compute the sum of 5,000,000 UTC Unix timestamps as fast as possible.

Input

One RFC 3339 datetime per line on STDIN:

2017-05-04T14:31:30-03:00
2046-06-23T11:51:56-06:00
2031-08-14T13:18:38+06:00
2048-04-14T05:55:06-09:00
1980-08-28T00:43:03+02:00

Output

Print the sum of all UTC Unix timestamps (int64) to STDOUT.

Constraints

  • Datetimes are in the range 1950-01-01T00:00:00 to 2050-12-31T23:59:59
Back to listNov 8, 2021 12:24Ilya AniskovetsIlya AniskovetsScore: 15,802Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2021 12:248,684118,641,92239,078,14102,240,512
2Nov 8, 2021 12:248,72298,099,31339,246,92902,248,704
3Nov 8, 2021 12:248,793103,082,52239,567,50902,248,704
4Nov 8, 2021 12:2415,612266,993,23438,797,00031,457,00029,499,392
5Nov 8, 2021 12:2415,709265,129,03438,463,00032,226,00029,569,024
6Nov 8, 2021 12:2415,798258,931,75836,560,00034,529,00029,671,424
7Nov 8, 2021 12:2415,802259,330,03937,585,00033,522,00029,466,624
8Nov 8, 2021 12:2415,819257,635,98436,068,00035,119,00029,708,288
9Nov 8, 2021 12:2415,847266,030,97738,240,00033,072,00029,655,040
10Nov 8, 2021 12:2415,887254,725,63736,222,00035,269,00029,650,944
11Nov 8, 2021 12:2416,022262,422,73241,683,00030,417,00029,708,288
12Nov 8, 2021 12:2416,093262,966,23841,223,00031,196,00029,765,632