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 11:26Ilya AniskovetsIlya AniskovetsScore: 15,261Success
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 11:267,84495,522,61335,295,84702,269,184
2Nov 9, 2021 11:267,905111,386,90835,571,86702,260,992
3Nov 9, 2021 11:267,92292,773,24235,648,77202,265,088
4Nov 9, 2021 11:2615,196257,442,14336,329,00032,055,00029,659,136
5Nov 9, 2021 11:2615,248261,716,48032,859,00035,758,00029,659,136
6Nov 9, 2021 11:2615,261258,152,38035,378,00033,296,00029,536,256
7Nov 9, 2021 11:2615,261255,691,98334,338,00034,338,00029,659,136
8Nov 9, 2021 11:2615,294258,808,38033,913,00034,910,00029,655,040
9Nov 9, 2021 11:2615,328255,834,99541,624,00027,352,00029,622,272
10Nov 9, 2021 11:2615,415270,082,13637,351,00032,015,00029,540,352
11Nov 9, 2021 11:2615,503258,822,14136,996,00032,768,00029,593,600
12Nov 9, 2021 11:2615,522264,152,85236,488,00033,361,00029,589,504