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 4, 2024 09:54Joad NacerJoad NacerScore: 25,028Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2024 09:4119,035150,591,28185,658,54902,289,664
2May 4, 2024 09:4119,046148,800,07285,708,87902,285,568
3May 4, 2024 09:5419,076154,925,34085,843,86502,277,376
4May 4, 2024 09:5419,087147,982,10585,893,40602,277,376
5May 4, 2024 09:5419,109156,814,41085,989,04302,289,664
6May 4, 2024 09:4119,228168,841,17586,525,30802,281,472
7May 4, 2024 09:4124,797304,303,38747,823,00063,765,00029,724,672
8May 4, 2024 09:5424,842298,704,14545,732,00066,057,00029,569,024
9May 4, 2024 09:4124,933306,964,72646,320,00065,878,00029,597,696
10May 4, 2024 09:5424,975302,876,30743,598,00068,788,00029,683,712
11May 4, 2024 09:5424,998301,305,12046,871,00065,619,00029,569,024
12May 4, 2024 09:5425,005302,360,24145,617,00066,906,00029,642,752
13May 4, 2024 09:4125,028306,747,37947,814,00064,814,00029,683,712
14May 4, 2024 09:4125,039302,693,84249,838,00062,839,00029,560,832
15May 4, 2024 09:4125,142301,684,96545,866,00067,271,00029,732,864
16May 4, 2024 09:4125,143300,862,78946,470,00066,674,00029,597,696
17May 4, 2024 09:5425,150298,600,89247,598,00065,579,00029,679,616
18May 4, 2024 09:5425,160312,238,31649,132,00064,086,00029,499,392
19May 4, 2024 09:5425,202304,333,94746,821,00066,590,00029,597,696
20May 4, 2024 09:4125,392303,140,36749,587,00064,679,00029,671,424
21May 4, 2024 09:4125,426302,855,13645,371,00069,044,00029,650,944
22May 4, 2024 09:5425,455304,700,41349,709,00064,838,00029,528,064
23May 4, 2024 09:4125,482308,859,68948,994,00065,674,00029,593,600
24May 4, 2024 09:5425,483309,371,41046,489,00068,185,00029,732,864