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 9, 2021 12:31Ilya AniskovetsIlya AniskovetsScore: 14,503Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 9, 2021 12:317,132103,439,89632,093,27402,269,184
2Nov 9, 2021 12:317,160122,310,60132,220,83902,252,800
3Nov 9, 2021 12:317,21092,434,60932,447,19902,265,088
4Nov 9, 2021 12:3114,397249,218,24429,534,00035,251,00029,614,080
5Nov 9, 2021 12:3114,436252,909,70331,965,00032,996,00029,532,160
6Nov 9, 2021 12:3114,501255,308,34230,193,00035,062,00029,544,448
7Nov 9, 2021 12:3114,503253,525,20128,495,00036,767,00029,544,448
8Nov 9, 2021 12:3114,527249,138,35034,407,00030,966,00029,622,272
9Nov 9, 2021 12:3114,592255,368,78332,312,00033,354,00029,536,256
10Nov 9, 2021 12:3114,596254,036,64329,944,00035,740,00029,745,152
11Nov 9, 2021 12:3114,642252,913,92029,179,00036,709,00029,720,576
12Nov 9, 2021 12:3114,656256,455,21432,976,00032,976,00029,646,848