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 24, 2021 02:22Vitaliy F.Vitaliy F.Score: 50,162Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 24, 2021 02:2240,507235,037,656182,283,16602,183,168
2Nov 24, 2021 02:2240,532241,113,278182,391,76502,174,976
3Nov 24, 2021 02:2240,558242,893,952182,509,47202,306,048
4Nov 24, 2021 02:2249,997424,988,609193,428,00031,559,00029,511,680
5Nov 24, 2021 02:2250,060425,520,845191,897,00033,373,00029,642,752
6Nov 24, 2021 02:2250,078429,859,728188,474,00036,875,00029,577,216
7Nov 24, 2021 02:2250,162425,583,816186,129,00039,602,00029,519,872
8Nov 24, 2021 02:2250,172429,420,746190,498,00035,277,00029,642,752
9Nov 24, 2021 02:2250,222429,775,757191,386,00034,612,00029,577,216
10Nov 24, 2021 02:2250,282430,190,900182,834,00043,435,00029,638,656
11Nov 24, 2021 02:2250,339427,600,958194,983,00031,541,00029,708,288
12Nov 24, 2021 02:2250,413430,942,578180,271,00046,587,00029,671,424