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 listNov 9, 2021 09:02Ilya AniskovetsIlya AniskovetsScore: 15,375Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 9, 2021 09:027,96192,788,01035,823,68202,265,088
2Nov 9, 2021 09:027,988115,590,62535,945,41802,260,992
3Nov 9, 2021 09:028,049109,761,26036,219,09402,273,280
4Nov 9, 2021 09:0215,243258,121,97532,887,00035,705,00029,626,368
5Nov 9, 2021 09:0215,320258,468,71337,122,00031,819,00029,622,272
6Nov 9, 2021 09:0215,348260,918,82836,127,00032,939,00029,609,984
7Nov 9, 2021 09:0215,375260,616,99338,437,00030,749,00029,630,464
8Nov 9, 2021 09:0215,389255,076,10335,142,00034,108,00029,630,464
9Nov 9, 2021 09:0215,429260,850,97535,736,00033,694,00029,626,368
10Nov 9, 2021 09:0215,435262,795,22941,915,00027,544,00029,626,368
11Nov 9, 2021 09:0215,482260,242,58936,441,00033,226,00029,679,616
12Nov 9, 2021 09:0215,726267,183,83639,807,00030,961,00029,716,480