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 00:59Yuriy LyfenkoYuriy LyfenkoScore: 10,307Success
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 00:593,00385,281,60113,514,84602,240,512
2May 10, 2023 00:593,01286,877,81813,555,86702,244,608
3May 10, 2023 01:033,01855,498,67913,582,50702,244,608
4May 10, 2023 01:033,02079,504,58513,591,50002,248,704
5May 10, 2023 01:033,04274,998,91013,688,81202,248,704
6May 10, 2023 00:593,04760,293,71713,713,15302,240,512
7May 10, 2023 00:5910,111238,582,85411,375,00034,125,00029,712,384
8May 10, 2023 01:0310,189231,305,34113,420,00032,432,00029,659,136
9May 10, 2023 00:5910,273238,025,14112,607,00033,620,00029,704,192
10May 10, 2023 01:0310,279235,241,75217,181,00029,076,00029,675,520
11May 10, 2023 01:0310,292232,215,48112,350,00033,962,00029,675,520
12May 10, 2023 00:5910,302239,789,86713,697,00032,662,00029,708,288
13May 10, 2023 01:0310,307243,520,44912,561,00033,819,00029,663,232
14May 10, 2023 01:0310,330236,980,43712,333,00034,154,00029,675,520
15May 10, 2023 00:5910,362235,400,22214,432,00032,196,00029,708,288
16May 10, 2023 01:0310,391236,764,65714,137,00032,624,00029,708,288
17May 10, 2023 00:5910,402241,774,43615,602,00031,205,00029,667,328
18May 10, 2023 01:0310,407234,432,39215,220,00031,612,00029,671,424
19May 10, 2023 01:0310,408235,930,70911,708,00035,126,00029,540,352
20May 10, 2023 00:5910,466239,198,37412,495,00034,603,00029,503,488
21May 10, 2023 01:0310,513240,182,70415,402,00031,905,00029,704,192
22May 10, 2023 00:5910,527241,734,73516,206,00031,166,00029,667,328
23May 10, 2023 00:5910,630237,085,71315,167,00032,669,00029,675,520
24May 10, 2023 00:5910,823240,720,04015,442,00033,261,00029,708,288