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 listAug 31, 2024 22:27Yuriy LyfenkoYuriy LyfenkoScore: 14,766Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 31, 2024 22:2714,310250,694,32233,782,00030,615,00029,646,848
2Aug 31, 2024 22:2714,381247,293,93335,100,00029,615,00029,659,136
3Aug 31, 2024 22:2714,610258,718,69633,969,00031,778,00029,491,200
4Aug 31, 2024 22:2714,650251,381,48229,300,00036,626,00029,499,392
5Aug 31, 2024 22:2714,658259,584,08234,044,00031,916,00029,495,296
6Aug 31, 2024 22:2714,677256,586,85232,022,00034,023,00029,663,232
7Aug 31, 2024 22:2714,766261,270,20534,913,00031,534,00029,687,808
8Aug 31, 2024 22:2714,778259,208,68934,885,00031,615,00029,683,712
9Aug 31, 2024 22:2714,784256,140,58336,704,00029,822,00029,757,440
10Aug 31, 2024 22:2714,812257,194,34231,739,00034,913,00029,511,680
11Aug 31, 2024 22:2714,888255,324,23235,809,00031,188,00029,753,344
12Aug 31, 2024 22:2714,889259,184,91734,618,00032,384,00029,667,328