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 10, 2021 23:06Yurkov AlekseyYurkov AlekseyScore: 21,853Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 23:0612,859109,148,05757,865,86802,273,280
2Oct 10, 2021 23:0612,859115,765,86357,866,25402,269,184
3Oct 10, 2021 23:0612,865116,056,63357,891,54002,273,280
4Oct 10, 2021 23:0621,244281,255,60163,374,00032,224,00029,552,640
5Oct 10, 2021 23:0621,466295,446,02562,097,00034,498,00029,634,560
6Oct 10, 2021 23:0621,738294,316,85963,923,00033,898,00029,552,640
7Oct 10, 2021 23:0621,853297,049,65450,809,00047,531,00029,687,808
8Oct 10, 2021 23:0621,868298,729,16360,559,00037,849,00029,696,000
9Oct 10, 2021 23:0621,950300,941,96264,297,00034,478,00029,544,448
10Oct 10, 2021 23:0622,013298,486,66857,634,00041,424,00029,548,544
11Oct 10, 2021 23:0622,029296,881,44469,912,00029,217,00029,667,328
12Oct 10, 2021 23:0622,166296,859,22660,286,00039,460,00029,532,160