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 00:50Yuriy LyfenkoYuriy LyfenkoScore: 17,179Success
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 00:509,866114,719,39544,396,69702,256,896
2Oct 11, 2021 00:509,872111,748,19544,425,44202,244,608
3Oct 11, 2021 00:509,877101,296,79844,446,06002,248,704
4Oct 11, 2021 00:5017,116273,560,22949,839,00027,185,00029,712,384
5Oct 11, 2021 00:5017,149266,679,16747,404,00029,765,00029,675,520
6Oct 11, 2021 00:5017,157265,940,37546,760,00030,448,00029,675,520
7Oct 11, 2021 00:5017,179267,193,27442,518,00034,787,00029,708,288
8Oct 11, 2021 00:5017,193261,421,80946,003,00031,365,00029,704,192
9Oct 11, 2021 00:5017,216271,431,75747,345,00030,129,00029,675,520
10Oct 11, 2021 00:5017,284262,688,33742,878,00034,901,00029,507,584
11Oct 11, 2021 00:5017,306271,423,70941,341,00036,534,00029,511,680
12Oct 11, 2021 00:5017,420274,827,35849,571,00028,820,00029,675,520