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 listJun 28, 2024 15:09AnSaAnSaScore: 26,868Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2024 15:0917,370136,295,30178,164,54102,265,088
2Jun 28, 2024 15:0917,385146,814,58878,233,92102,277,376
3Jun 28, 2024 15:0917,395130,699,98678,277,90602,277,376
4Jun 28, 2024 15:0926,630326,270,45389,107,00030,726,00029,663,232
5Jun 28, 2024 15:0926,739318,049,26183,057,00037,269,00029,499,392
6Jun 28, 2024 15:0926,857320,404,45591,491,00029,367,00029,556,736
7Jun 28, 2024 15:0926,868319,686,82188,313,00032,591,00029,663,232
8Jun 28, 2024 15:0926,948322,573,70586,305,00034,959,00029,564,928
9Jun 28, 2024 15:0926,979326,704,33582,681,00038,724,00029,528,064
10Jun 28, 2024 15:0927,034325,045,63191,754,00029,897,00029,569,024
11Jun 28, 2024 15:0927,058325,244,29284,145,00037,618,00029,728,768
12Jun 28, 2024 15:0927,117326,378,40082,034,00039,991,00029,560,832