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 listMay 7, 2023 15:39Bernard TeoBernard TeoScore: 22,587Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2023 15:3913,456127,833,96760,551,71002,285,568
2May 7, 2023 15:3913,457120,391,17260,558,30802,277,376
3May 7, 2023 15:3913,562114,510,81561,030,98902,277,376
4May 7, 2023 15:3913,585122,859,28761,132,27202,265,088
5May 7, 2023 15:3913,585120,208,96561,131,95602,269,184
6May 7, 2023 15:3913,615121,736,48261,265,48902,269,184
7May 7, 2023 15:3921,651279,456,30265,636,00031,792,00029,552,640
8May 7, 2023 15:3921,894283,041,72764,688,00033,837,00029,601,792
9May 7, 2023 15:3922,089289,361,52668,339,00031,063,00029,601,792
10May 7, 2023 15:3922,564303,597,16753,699,00047,840,00029,560,832
11May 7, 2023 15:3922,567298,672,76970,465,00031,087,00029,573,120
12May 7, 2023 15:3922,583303,903,48567,072,00034,552,00029,761,536
13May 7, 2023 15:3922,587301,679,10767,762,00033,881,00029,552,640
14May 7, 2023 15:3922,608306,154,27569,142,00032,595,00029,548,544
15May 7, 2023 15:3922,613304,592,12269,018,00032,739,00029,667,328
16May 7, 2023 15:3922,635303,536,75658,059,00043,799,00029,732,864
17May 7, 2023 15:3922,643303,631,11974,723,00027,172,00029,638,656
18May 7, 2023 15:3922,658299,753,88065,687,00036,275,00029,757,440
19May 7, 2023 15:3922,682302,847,36968,742,00033,329,00029,601,792
20May 7, 2023 15:3922,724299,686,64967,836,00034,424,00029,761,536
21May 7, 2023 15:3922,805301,328,69065,208,00037,414,00029,732,864
22May 7, 2023 15:3922,884301,137,61358,446,00044,530,00029,556,736
23May 7, 2023 15:3922,927303,151,32569,443,00033,729,00029,597,696
24May 7, 2023 15:3922,942309,535,81466,511,00036,729,00029,601,792