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 listSep 3, 2024 16:41AnSaAnSaScore: 19,070Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2024 16:4118,499269,389,37652,974,00030,271,00029,597,696
2Sep 3, 2024 16:4118,682278,363,14743,420,00040,648,00029,528,064
3Sep 3, 2024 16:4118,738274,160,70350,215,00034,108,00029,724,672
4Sep 3, 2024 16:4118,953282,767,26951,594,00033,694,00029,548,544
5Sep 3, 2024 16:4118,976286,343,10740,840,00044,553,00029,556,736
6Sep 3, 2024 16:4119,009281,346,15645,229,00040,313,00029,499,392
7Sep 3, 2024 16:4119,070283,061,82150,853,00034,961,00029,630,464
8Sep 3, 2024 16:4119,121285,801,34659,003,00027,043,00029,548,544
9Sep 3, 2024 16:4119,184284,239,79246,636,00039,690,00029,528,064
10Sep 3, 2024 16:4119,220285,573,85046,006,00040,485,00029,560,832
11Sep 3, 2024 16:4119,300282,806,64246,174,00040,677,00029,560,832
12Sep 3, 2024 16:4119,354290,561,39348,990,00038,104,00029,548,544