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:29Yuriy LyfenkoYuriy LyfenkoScore: 14,570Success
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:297,16391,681,66532,231,73102,220,032
2May 10, 2023 03:297,169115,211,77232,262,22602,220,032
3May 10, 2023 03:297,17096,619,39432,266,23502,224,128
4May 10, 2023 03:2914,297256,682,67431,162,00033,173,00029,503,488
5May 10, 2023 03:2914,404253,477,97330,384,00034,435,00029,569,024
6May 10, 2023 03:2914,451250,521,09030,966,00034,063,00029,638,656
7May 10, 2023 03:2914,570264,636,63229,801,00035,762,00029,667,328
8May 10, 2023 03:2914,572254,837,04635,049,00030,526,00029,671,424
9May 10, 2023 03:2914,585260,003,98132,816,00032,816,00029,655,040
10May 10, 2023 03:2914,652272,716,73830,840,00035,094,00029,671,424
11May 10, 2023 03:2914,688262,184,47027,927,00038,167,00029,519,872
12May 10, 2023 03:2914,696258,379,78037,275,00028,858,00029,798,400