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 listOct 11, 2021 11:28tirochkintirochkinScore: 46,209Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 11:2838,900237,178,374175,049,03502,215,936
2Oct 11, 2021 11:2838,967245,433,682175,352,19202,220,032
3Oct 11, 2021 11:2839,092231,927,178175,914,32702,224,128
4Oct 11, 2021 11:2845,977387,357,114155,174,00051,724,00029,630,464
5Oct 11, 2021 11:2846,174387,054,786156,855,00050,927,00029,630,464
6Oct 11, 2021 11:2846,187385,724,108129,901,00077,940,00029,700,096
7Oct 11, 2021 11:2846,209394,167,999149,958,00057,983,00029,564,928
8Oct 11, 2021 11:2846,214391,429,540150,195,00057,767,00029,601,792
9Oct 11, 2021 11:2846,252393,906,814146,284,00061,851,00029,700,096
10Oct 11, 2021 11:2846,489393,241,037147,486,00061,714,00029,655,040
11Oct 11, 2021 11:2846,491390,134,297136,183,00073,026,00029,663,232
12Oct 11, 2021 11:2846,525384,489,255149,690,00059,674,00029,601,792