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 listNov 21, 2024 01:53Mikhail ShirokovMikhail ShirokovScore: 2,094,518Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 21, 2024 01:532,058,4839,485,539,8705,375,842,0003,887,332,00029,507,584
2Nov 21, 2024 01:532,059,8789,495,696,7225,318,128,0003,951,324,00029,609,984
3Nov 21, 2024 01:532,060,0149,495,784,4885,364,407,0003,905,656,00029,515,776
4Nov 21, 2024 01:532,063,4259,506,274,3945,339,812,0003,945,600,00029,507,584
5Nov 21, 2024 01:532,094,5189,651,946,7355,507,105,0003,918,228,00029,622,272
6Nov 21, 2024 01:532,103,0709,688,738,9785,413,034,0004,050,780,00029,487,104
7Nov 21, 2024 01:532,103,7129,698,241,6505,377,216,0004,089,488,00029,499,392
8Nov 21, 2024 01:532,155,7329,933,732,7205,518,625,0004,182,168,00029,495,296
9Nov 21, 2024 01:532,258,55510,391,334,4295,704,298,0004,459,198,00029,650,944