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 10, 2024 05:40Yuriy LyfenkoYuriy LyfenkoScore: 10,356Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 10, 2024 05:4010,0366,237,620,11012,603,00032,559,00029,470,720
2Dec 10, 2024 05:4010,1216,239,739,82910,931,00034,615,00029,753,344
3Dec 10, 2024 05:4010,1236,235,279,59313,015,00032,539,00029,798,400
4Dec 10, 2024 05:4010,3046,236,226,80912,939,00033,428,00029,515,776
5Dec 10, 2024 05:4010,3566,237,171,73413,768,00032,832,00029,741,056
6Dec 10, 2024 05:4010,4096,231,896,70212,179,00034,663,00029,724,672
7Dec 10, 2024 05:4010,4106,235,980,82813,533,00033,312,00029,716,480
8Dec 10, 2024 05:4010,4716,236,430,57915,314,00031,807,00029,745,152
9Dec 10, 2024 05:4010,5686,234,142,53913,738,00033,818,00029,794,304