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 10, 2023 03:06Yuriy LyfenkoYuriy LyfenkoScore: 17,759Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 03:0610,488113,806,58547,196,64602,228,224
2May 10, 2023 03:0610,495114,874,09647,229,18302,207,744
3May 10, 2023 03:0610,504123,304,09947,266,51902,220,032
4May 10, 2023 03:0617,527262,016,43648,374,00030,497,00029,745,152
5May 10, 2023 03:0617,700266,506,89744,250,00035,400,00029,573,120
6May 10, 2023 03:0617,747265,651,40251,022,00028,838,00029,655,040
7May 10, 2023 03:0617,759262,389,80246,703,00033,211,00029,573,120
8May 10, 2023 03:0617,835267,625,36045,023,00035,236,00029,560,832
9May 10, 2023 03:0617,898271,816,15845,304,00035,237,00029,769,728
10May 10, 2023 03:0618,106267,626,95150,648,00030,829,00029,671,424
11May 10, 2023 03:0618,147283,858,41448,996,00032,664,00029,589,504
12May 10, 2023 03:0618,203280,532,89552,333,00029,579,00029,671,424