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 10, 2021 22:46Yuriy LyfenkoYuriy LyfenkoScore: 20,766Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 22:4613,683117,956,80961,574,49902,244,608
2Oct 10, 2021 22:4613,686114,712,37861,586,91802,248,704
3Oct 10, 2021 22:4613,690123,414,96161,603,99502,248,704
4Oct 10, 2021 22:4620,400283,689,30857,618,00034,180,00029,577,216
5Oct 10, 2021 22:4620,516283,964,97960,166,00032,157,00029,544,448
6Oct 10, 2021 22:4620,674286,897,61766,452,00026,581,00029,560,832
7Oct 10, 2021 22:4620,766282,481,41158,654,00034,794,00029,700,096
8Oct 10, 2021 22:4620,830306,354,36563,568,00030,168,00029,577,216
9Oct 10, 2021 22:4620,840288,227,83762,874,00030,904,00029,601,792
10Oct 10, 2021 22:4620,847276,656,01659,142,00034,669,00029,433,856
11Oct 10, 2021 22:4620,855287,324,92457,297,00036,551,00029,548,544
12Oct 10, 2021 22:4620,864280,380,87465,945,00027,942,00029,663,232