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 8, 2023 23:19Yuriy LyfenkoYuriy LyfenkoScore: 12,021Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 23:194,98385,899,61022,422,29102,248,704
2May 8, 2023 23:194,98499,282,45222,428,37102,244,608
3May 8, 2023 23:194,98895,611,48122,447,81102,236,416
4May 8, 2023 23:1911,932244,875,63618,516,00035,180,00029,663,232
5May 8, 2023 23:1911,937246,618,49021,693,00032,023,00029,667,328
6May 8, 2023 23:1912,009242,760,40420,634,00033,408,00029,544,448
7May 8, 2023 23:1912,021246,685,89416,314,00037,779,00029,708,288
8May 8, 2023 23:1912,044252,544,70820,452,00033,746,00029,671,424
9May 8, 2023 23:1912,045243,244,93219,018,00035,184,00029,736,960
10May 8, 2023 23:1912,168241,731,34219,556,00035,202,00029,544,448
11May 8, 2023 23:1912,312250,253,15122,374,00033,029,00029,741,056
12May 8, 2023 23:1912,324248,107,03125,208,00030,250,00029,675,520