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 19:40Yuriy LyfenkoYuriy LyfenkoScore: 10,392Success
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 19:4010,130238,155,14612,432,00033,152,00029,581,312
2Sep 3, 2024 19:4010,220237,659,40212,834,00033,157,00029,528,064
3Sep 3, 2024 19:4010,331236,989,01613,736,00032,755,00029,687,808
4Sep 3, 2024 19:4010,357232,973,86517,171,00029,437,00029,671,424
5Sep 3, 2024 19:4010,371233,197,00212,445,00034,224,00029,667,328
6Sep 3, 2024 19:4010,371240,449,98616,397,00030,272,00029,577,216
7Sep 3, 2024 19:4010,392238,383,92714,767,00031,996,00029,446,144
8Sep 3, 2024 19:4010,442231,120,01912,997,00033,994,00029,663,232
9Sep 3, 2024 19:4010,454235,146,34614,968,00032,074,00029,708,288
10Sep 3, 2024 19:4010,455239,363,11314,114,00032,933,00029,638,656
11Sep 3, 2024 19:4010,496235,173,68614,694,00032,537,00029,544,448
12Sep 3, 2024 19:4010,519236,764,78712,910,00034,427,00029,663,232