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 06:19Yuriy LyfenkoYuriy LyfenkoScore: 12,200Success
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 06:195,06287,409,26322,779,95202,252,800
2May 8, 2023 06:195,06394,457,64622,785,10402,256,896
3May 8, 2023 06:195,06489,117,98422,786,80302,236,416
4May 8, 2023 06:1912,110247,603,04819,981,00034,513,00029,401,088
5May 8, 2023 06:1912,118245,770,11722,454,00032,078,00029,671,424
6May 8, 2023 06:1912,166244,223,26924,581,00030,167,00029,708,288
7May 8, 2023 06:1912,200251,810,52322,605,00032,293,00029,663,232
8May 8, 2023 06:1912,206243,669,99521,361,00033,568,00029,708,288
9May 8, 2023 06:1912,210242,436,67023,246,00031,700,00029,442,048
10May 8, 2023 06:1912,215250,870,48620,987,00033,980,00029,708,288
11May 8, 2023 06:1912,245242,473,16620,663,00034,439,00029,663,232
12May 8, 2023 06:1912,245243,875,15321,429,00033,675,00029,413,376