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 listJun 12, 2023 22:07Victor MuñozVictor MuñozError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2023 22:0800000Error: expected "4816629680680385 ", got "4816629681601985 "
2Jun 12, 2023 22:093,45872,821,12615,562,52502,252,800
3Jun 12, 2023 22:073,46586,907,58015,592,37202,240,512
4Jun 12, 2023 22:093,47058,726,72215,614,09802,252,800
5Jun 12, 2023 22:073,47379,485,87315,628,71102,248,704
6Jun 12, 2023 22:093,47888,581,36315,649,77502,252,800
7Jun 12, 2023 22:073,48290,421,98115,667,05102,260,992
8Jun 12, 2023 22:0710,431234,466,34514,935,00032,005,00029,667,328
9Jun 12, 2023 22:0910,527241,131,91114,417,00032,954,00029,544,448
10Jun 12, 2023 22:0910,538233,969,02114,125,00033,296,00029,671,424
11Jun 12, 2023 22:0910,544242,404,01116,607,00030,842,00029,671,424
12Jun 12, 2023 22:0710,562238,997,79512,609,00034,919,00029,663,232
13Jun 12, 2023 22:0910,577236,378,25413,999,00033,598,00029,663,232
14Jun 12, 2023 22:0710,592238,017,44113,901,00033,761,00029,708,288
15Jun 12, 2023 22:0710,598247,246,35113,247,00034,442,00029,642,752
16Jun 12, 2023 22:0910,602241,737,30214,767,00032,941,00029,663,232
17Jun 12, 2023 22:0910,605236,811,32115,907,00031,814,00029,544,448
18Jun 12, 2023 22:0710,606235,471,99113,488,00034,240,00029,708,288
19Jun 12, 2023 22:0710,608238,241,77213,791,00033,947,00029,675,520
20Jun 12, 2023 22:0710,717234,025,03114,678,00033,550,00029,708,288
21Jun 12, 2023 22:0910,733245,141,15615,725,00032,574,00029,544,448
22Jun 12, 2023 22:0910,740236,200,31414,959,00033,370,00029,577,216
23Jun 12, 2023 22:0710,796248,365,45214,035,00034,549,00029,704,192
24Jun 12, 2023 22:0910,822240,690,55414,069,00034,632,00029,675,520
25Jun 12, 2023 22:0710,950262,476,91115,252,00034,024,00029,741,056