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 02:47Yuriy LyfenkoYuriy LyfenkoScore: 10,310Success
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 02:472,99885,737,65313,490,48502,248,704
2May 10, 2023 02:463,00994,328,91113,538,35702,248,704
3May 10, 2023 02:473,01474,867,93413,560,94502,281,472
4May 10, 2023 02:473,02681,486,89513,615,11002,248,704
5May 10, 2023 02:463,03591,808,59813,659,59402,252,800
6May 10, 2023 02:463,05472,505,13513,741,11602,244,608
7May 10, 2023 02:4610,131236,543,20616,796,00028,793,00029,675,520
8May 10, 2023 02:4710,142237,242,08911,195,00034,446,00029,708,288
9May 10, 2023 02:4610,181237,983,82315,708,00030,107,00029,667,328
10May 10, 2023 02:4710,238241,242,56512,857,00033,213,00029,675,520
11May 10, 2023 02:4610,264238,794,47413,196,00032,990,00029,712,384
12May 10, 2023 02:4710,299231,902,39612,722,00033,623,00029,544,448
13May 10, 2023 02:4610,310236,004,80216,301,00030,094,00029,655,040
14May 10, 2023 02:4710,321232,117,10012,961,00033,483,00029,671,424
15May 10, 2023 02:4610,348235,266,52813,453,00033,115,00029,659,136
16May 10, 2023 02:4710,372237,115,39512,329,00034,347,00029,712,384
17May 10, 2023 02:4710,389231,985,17613,925,00032,824,00029,663,232
18May 10, 2023 02:4710,436237,131,84612,523,00034,440,00029,544,448
19May 10, 2023 02:4610,453238,483,57514,011,00033,026,00029,675,520
20May 10, 2023 02:4710,472237,628,41613,613,00033,510,00029,638,656
21May 10, 2023 02:4610,473241,994,90916,122,00031,005,00029,667,328
22May 10, 2023 02:4610,487246,668,55717,697,00029,496,00029,736,960
23May 10, 2023 02:4610,537233,455,78514,009,00033,407,00029,511,680
24May 10, 2023 02:4710,551242,124,74913,716,00033,764,00029,655,040