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 listOct 11, 2021 00:46Yuriy LyfenkoYuriy LyfenkoScore: 17,308Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 00:4610,401109,549,51346,803,48102,248,704
2Oct 11, 2021 00:4610,419106,834,71946,883,76902,248,704
3Oct 11, 2021 00:4610,500125,375,24547,251,40902,256,896
4Oct 11, 2021 00:4617,174266,878,08344,585,00032,696,00029,708,288
5Oct 11, 2021 00:4617,212266,483,75946,686,00030,770,00029,663,232
6Oct 11, 2021 00:4617,216271,087,86743,701,00033,769,00029,708,288
7Oct 11, 2021 00:4617,308262,511,30345,257,00032,627,00029,708,288
8Oct 11, 2021 00:4617,369269,780,86742,989,00035,173,00029,671,424
9Oct 11, 2021 00:4617,391264,879,36544,020,00034,238,00029,663,232
10Oct 11, 2021 00:4617,398269,482,36640,056,00038,235,00029,577,216
11Oct 11, 2021 00:4617,429271,650,79352,287,00026,143,00029,708,288
12Oct 11, 2021 00:4617,613274,925,05745,886,00033,371,00029,708,288