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 11:41Andrey TsvetkovAndrey TsvetkovScore: 131,588Success
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 11:4148,924291,288,202220,159,30602,289,664
2Oct 10, 2021 11:4149,389277,924,865222,248,81202,240,512
3Oct 10, 2021 11:4149,447284,847,010222,513,47202,293,760
4Oct 10, 2021 11:41121,603615,558,920547,212,74402,285,568
5Oct 10, 2021 11:41121,787616,506,209548,042,15502,265,088
6Oct 10, 2021 11:41122,098618,474,790549,439,75502,265,088
7Oct 10, 2021 11:41131,290776,880,378531,825,00058,980,00029,683,712
8Oct 10, 2021 11:41131,588766,764,406519,619,00072,528,00029,663,232
9Oct 10, 2021 11:41131,707779,032,639526,719,00065,962,00029,536,256
10Oct 10, 2021 11:41131,785779,856,229525,801,00067,230,00029,704,192
11Oct 10, 2021 11:41131,814778,098,912534,154,00059,011,00029,745,152
12Oct 10, 2021 11:41131,854777,516,358534,108,00059,233,00029,609,984
13Oct 10, 2021 11:41131,987768,624,921548,717,00045,223,00029,540,352
14Oct 10, 2021 11:41132,151777,078,936528,492,00066,186,00029,769,728
15Oct 10, 2021 11:41132,396772,592,998545,548,00050,234,00029,544,448