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 listDec 18, 2024 23:52Mikhail ShirokovMikhail ShirokovScore: 1,977,407Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 18, 2024 23:521,965,2748,875,341,0655,047,423,0003,796,309,0002,306,048
2Dec 18, 2024 23:521,967,5288,885,970,2444,985,114,0003,868,760,0002,301,952
3Dec 18, 2024 23:521,969,7198,895,177,8265,072,987,0003,790,748,0002,277,376
4Dec 18, 2024 23:521,970,2458,893,706,6665,123,436,0003,742,666,0002,277,376
5Dec 18, 2024 23:521,977,4078,928,588,6905,031,925,0003,866,406,0002,277,376
6Dec 18, 2024 23:521,983,7758,955,175,6115,111,839,0003,815,148,0002,277,376
7Dec 18, 2024 23:521,988,0548,981,301,4555,002,662,0003,943,580,0002,269,184
8Dec 18, 2024 23:521,994,1579,004,277,7855,105,850,0003,867,856,0002,277,376
9Dec 18, 2024 23:522,021,7339,131,595,0845,036,120,0004,061,677,0002,301,952