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 21, 2023 17:55Bernard TeoBernard TeoScore: 12,619Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2023 15:293,58881,246,61116,145,69702,269,184
2May 21, 2023 17:553,59083,950,82216,153,19802,273,280
3May 21, 2023 17:553,59985,999,61816,195,18202,269,184
4May 21, 2023 15:293,63778,681,32316,367,32702,277,376
5May 21, 2023 15:293,64884,162,54416,416,44002,277,376
6May 21, 2023 17:553,659120,601,39616,466,49102,277,376
7May 21, 2023 17:5512,154246,448,97521,671,00033,023,00029,634,560
8May 21, 2023 15:2912,279244,949,49724,234,00031,020,00029,560,832
9May 21, 2023 15:2912,318243,570,30620,531,00034,902,00029,564,928
10May 21, 2023 15:2912,371241,849,90319,440,00036,229,00029,761,536
11May 21, 2023 17:5512,383239,455,30417,293,00038,430,00029,732,864
12May 21, 2023 17:5512,470246,194,29823,777,00032,337,00029,671,424
13May 21, 2023 17:5512,619249,344,95915,000,00041,786,00029,564,928
14May 21, 2023 15:2912,669246,456,28026,313,00030,698,00029,667,328
15May 21, 2023 15:2912,765245,607,60815,956,00041,487,00029,601,792
16May 21, 2023 15:2912,862255,654,56117,262,00040,618,00029,569,024
17May 21, 2023 15:2912,880254,609,04223,406,00034,552,00029,634,560
18May 21, 2023 17:5512,922258,183,03423,463,00034,684,00029,634,560
19May 21, 2023 17:5512,948255,183,86921,849,00036,415,00029,728,768
20May 21, 2023 17:5512,953261,809,55821,996,00036,294,00029,667,328
21May 21, 2023 15:2912,958260,183,81122,118,00036,193,00029,700,096
22May 21, 2023 15:2912,965256,212,32521,102,00037,240,00029,634,560
23May 21, 2023 17:5513,095260,102,48623,571,00035,357,00029,634,560
24May 21, 2023 17:5513,154261,872,66320,035,00039,159,00029,732,864