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 listMay 9, 2024 21:59Joad NacerJoad NacerScore: 14,767Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 21:596,84398,934,01430,794,51202,285,568
2May 9, 2024 21:596,88390,699,58030,975,03102,273,280
3May 9, 2024 21:596,893127,184,20831,018,59102,277,376
4May 9, 2024 21:5914,670247,513,86335,209,00030,808,00029,528,064
5May 9, 2024 21:5914,720251,564,50931,638,00034,604,00029,663,232
6May 9, 2024 21:5914,746257,638,54636,390,00029,968,00029,515,776
7May 9, 2024 21:5914,767255,451,90033,737,00032,715,00029,544,448
8May 9, 2024 21:5914,768253,958,20334,811,00031,647,00029,642,752
9May 9, 2024 21:5914,816256,288,52834,411,00032,261,00029,552,640
10May 9, 2024 21:5914,816255,590,17435,559,00031,114,00029,650,944
11May 9, 2024 21:5914,917252,344,31232,547,00034,581,00029,487,104
12May 9, 2024 21:5914,928256,041,71031,613,00035,564,00029,528,064