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 7, 2021 20:37Sergey StreminSergey StreminScore: 15,162Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 7, 2021 20:377,92695,772,89235,665,00902,256,896
2Nov 7, 2021 20:377,92998,067,80435,678,91402,260,992
3Nov 7, 2021 20:378,29089,048,99137,304,25002,203,648
4Nov 7, 2021 20:3714,894256,322,57636,755,00030,269,00029,642,752
5Nov 7, 2021 20:3715,006256,618,18235,323,00032,206,00029,667,328
6Nov 7, 2021 20:3715,128255,889,81634,562,00033,514,00029,667,328
7Nov 7, 2021 20:3715,162262,156,45432,632,00035,599,00029,507,584
8Nov 7, 2021 20:3715,218264,569,63234,241,00034,241,00029,765,632
9Nov 7, 2021 20:3715,222263,342,13331,396,00037,104,00029,601,792
10Nov 7, 2021 20:3715,316264,847,50237,197,00031,727,00029,736,960
11Nov 7, 2021 20:3715,466271,106,85535,334,00034,264,00029,683,712
12Nov 7, 2021 20:3715,876265,916,07931,858,00039,582,00029,532,160