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 15, 2021 14:59Yuriy LyfenkoYuriy LyfenkoScore: 15,642Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 14:598,42998,608,16937,932,62302,248,704
2Oct 15, 2021 14:598,437103,883,06537,967,95602,256,896
3Oct 15, 2021 14:598,441113,423,54737,985,19002,248,704
4Oct 15, 2021 14:5915,601259,697,38741,897,00028,309,00029,704,192
5Oct 15, 2021 14:5915,630257,771,39436,145,00034,192,00029,679,616
6Oct 15, 2021 14:5915,639260,459,57838,863,00031,511,00029,708,288
7Oct 15, 2021 14:5915,642263,261,36140,223,00030,167,00029,736,960
8Oct 15, 2021 14:5915,646258,195,79338,881,00031,525,00029,663,232
9Oct 15, 2021 14:5915,672257,090,16537,894,00032,630,00029,671,424
10Oct 15, 2021 14:5915,722258,541,09838,014,00032,734,00029,528,064
11Oct 15, 2021 14:5915,756269,082,80039,047,00031,854,00029,577,216
12Oct 15, 2021 14:5915,829267,041,51333,741,00037,490,00029,540,352