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 listOct 10, 2021 23:05Yuriy LyfenkoYuriy LyfenkoScore: 20,448Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 23:0512,990113,204,43858,456,06902,244,608
2Oct 10, 2021 23:0512,993120,123,11658,468,50702,252,800
3Oct 10, 2021 23:0513,006132,853,71458,526,60602,256,896
4Oct 10, 2021 23:0520,338276,943,63763,192,00028,327,00029,704,192
5Oct 10, 2021 23:0520,353281,619,94860,704,00030,884,00029,564,928
6Oct 10, 2021 23:0520,447282,402,85159,598,00032,413,00029,667,328
7Oct 10, 2021 23:0520,448286,151,79256,775,00035,239,00029,597,696
8Oct 10, 2021 23:0520,476284,920,38563,279,00028,864,00029,577,216
9Oct 10, 2021 23:0520,534285,296,93657,251,00035,154,00029,544,448
10Oct 10, 2021 23:0520,581283,010,09555,956,00036,660,00029,630,464
11Oct 10, 2021 23:0520,603294,478,46264,353,00028,359,00029,675,520
12Oct 10, 2021 23:0520,612280,244,51662,940,00029,813,00029,675,520