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 24, 2021 02:21Vitaliy F.Vitaliy F.Score: 43,013Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 24, 2021 02:2133,754208,082,558151,894,89902,252,800
2Nov 24, 2021 02:2133,773213,080,285151,976,32602,240,512
3Nov 24, 2021 02:2133,776204,854,287151,992,85202,228,224
4Nov 24, 2021 02:2142,826396,465,284153,753,00038,964,00029,569,024
5Nov 24, 2021 02:2142,964395,796,859163,355,00029,982,00029,605,888
6Nov 24, 2021 02:2143,007395,463,125157,434,00036,099,00029,614,080
7Nov 24, 2021 02:2143,013398,883,842155,893,00037,665,00029,675,520
8Nov 24, 2021 02:2143,052399,903,180164,570,00029,164,00029,696,000
9Nov 24, 2021 02:2143,053392,060,470168,329,00025,408,00029,638,656
10Nov 24, 2021 02:2143,081396,392,896167,197,00026,669,00029,577,216
11Nov 24, 2021 02:2143,135395,451,624157,276,00036,830,00029,581,312
12Nov 24, 2021 02:2143,150392,805,648157,038,00037,137,00029,659,136