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 listMay 9, 2024 00:29Joad NacerJoad NacerScore: 18,472Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 00:299,608103,760,94143,234,03802,277,376
2May 9, 2024 00:299,770111,152,30643,966,98002,277,376
3May 9, 2024 00:299,772113,507,87343,975,84302,273,280
4May 9, 2024 00:2918,398277,228,26144,579,00038,210,00029,560,832
5May 9, 2024 00:2918,437269,542,72151,057,00031,911,00029,581,312
6May 9, 2024 00:2918,444267,154,60752,420,00030,578,00029,499,392
7May 9, 2024 00:2918,472276,081,52047,500,00035,625,00029,757,440
8May 9, 2024 00:2918,494269,760,16253,347,00029,874,00029,630,464
9May 9, 2024 00:2918,526269,223,21846,953,00036,413,00029,556,736
10May 9, 2024 00:2918,569269,376,65548,169,00035,390,00029,663,232
11May 9, 2024 00:2918,610273,663,80050,248,00033,499,00029,552,640
12May 9, 2024 00:2918,948268,445,53551,582,00033,686,00029,614,080