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 listAug 11, 2023 02:46PavelPavelScore: 109,912Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 11, 2023 02:46101,408519,811,938456,334,83102,203,648
2Aug 11, 2023 02:46101,459521,720,298456,567,45002,215,936
3Aug 11, 2023 02:46101,470526,009,305456,614,95902,207,744
4Aug 11, 2023 02:46109,752688,481,801467,517,00026,367,00029,655,040
5Aug 11, 2023 02:46109,768682,381,680457,184,00036,773,00029,515,776
6Aug 11, 2023 02:46109,863679,040,020459,358,00035,027,00029,515,776
7Aug 11, 2023 02:46109,912681,910,334463,504,00031,100,00029,634,560
8Aug 11, 2023 02:46109,975688,593,069456,209,00038,678,00029,655,040
9Aug 11, 2023 02:46110,022682,924,806461,957,00033,140,00029,560,832
10Aug 11, 2023 02:46110,024687,601,905459,245,00035,862,00029,540,352
11Aug 11, 2023 02:46110,086685,842,195464,995,00030,391,00029,597,696
12Aug 11, 2023 02:46110,115691,901,481464,231,00031,285,00029,622,272