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 listDec 19, 2024 00:21Mikhail ShirokovMikhail ShirokovScore: 1,513,534Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2024 00:211,500,6836,780,903,5993,010,804,0003,742,270,0002,277,376
2Dec 19, 2024 00:211,505,0886,799,640,9842,987,189,0003,785,706,0002,277,376
3Dec 19, 2024 00:211,506,5226,808,726,1222,969,963,0003,809,388,0002,277,376
4Dec 19, 2024 00:211,513,4216,842,093,8523,031,060,0003,779,334,0002,277,376
5Dec 19, 2024 00:211,513,5346,844,302,5273,037,727,0003,773,177,0002,523,136
6Dec 19, 2024 00:211,513,7436,846,936,2812,953,764,0003,858,079,0002,277,376
7Dec 19, 2024 00:211,521,6546,878,698,8813,025,103,0003,822,339,0002,277,376
8Dec 19, 2024 00:211,533,8866,932,382,9453,164,931,0003,737,557,0002,277,376
9Dec 19, 2024 00:211,547,0656,990,814,3403,161,635,0003,800,158,0002,277,376