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:09Victor MuñozVictor MuñozScore: 10,559Success
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:093,45590,134,69015,546,44202,252,800
2Jun 12, 2023 22:093,45982,350,69515,565,95202,252,800
3Jun 12, 2023 22:103,46984,070,46615,609,18702,248,704
4Jun 12, 2023 22:103,47578,874,48715,638,60902,248,704
5Jun 12, 2023 22:093,47683,974,20215,641,57402,256,896
6Jun 12, 2023 22:103,476109,704,26315,643,71702,252,800
7Jun 12, 2023 22:0910,438241,183,49313,569,00033,402,00029,708,288
8Jun 12, 2023 22:1010,479239,362,45914,046,00033,109,00029,708,288
9Jun 12, 2023 22:0910,492242,419,98512,276,00034,939,00029,704,192
10Jun 12, 2023 22:1010,521236,746,52615,012,00032,334,00029,659,136
11Jun 12, 2023 22:1010,531235,958,82715,429,00031,961,00029,667,328
12Jun 12, 2023 22:1010,557239,155,64113,302,00034,206,00029,638,656
13Jun 12, 2023 22:1010,559237,560,18613,575,00033,939,00029,708,288
14Jun 12, 2023 22:1010,588235,824,24713,896,00033,748,00029,675,520
15Jun 12, 2023 22:0910,590241,581,32316,246,00031,409,00029,544,448
16Jun 12, 2023 22:1010,600241,632,72013,355,00034,343,00029,667,328
17Jun 12, 2023 22:0910,621237,976,83918,586,00029,207,00029,675,520
18Jun 12, 2023 22:1010,626236,154,50913,813,00034,002,00029,474,816
19Jun 12, 2023 22:0910,688242,987,74516,031,00032,063,00029,540,352
20Jun 12, 2023 22:1010,737235,643,41816,498,00031,819,00029,659,136
21Jun 12, 2023 22:0910,742236,244,21913,092,00035,247,00029,659,136
22Jun 12, 2023 22:0910,783238,098,83614,152,00034,370,00029,708,288
23Jun 12, 2023 22:0910,805238,964,39318,397,00030,224,00029,708,288
24Jun 12, 2023 22:0910,823236,640,23415,219,00033,483,00029,646,848