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 25, 2024 00:08Joad NacerJoad NacerScore: 12,915Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 25, 2024 00:0712,761248,523,88325,057,00032,366,00029,683,712
2Nov 25, 2024 00:0712,794242,148,96028,787,00028,787,00029,667,328
3Nov 25, 2024 00:0712,818245,326,45726,014,00031,669,00029,683,712
4Nov 25, 2024 00:0712,891252,298,94122,237,00035,772,00029,700,096
5Nov 25, 2024 00:0812,896245,484,06925,322,00032,708,00029,708,288
6Nov 25, 2024 00:0712,910248,033,46925,041,00033,054,00029,597,696
7Nov 25, 2024 00:0712,915243,420,09126,418,00031,701,00029,585,408
8Nov 25, 2024 00:0712,925240,888,88225,965,00032,197,00029,650,944
9Nov 25, 2024 00:0812,927241,445,94022,677,00035,495,00029,716,480
10Nov 25, 2024 00:0712,956249,618,79326,028,00032,275,00029,700,096
11Nov 25, 2024 00:0813,045248,781,62724,716,00033,985,00029,556,736
12Nov 25, 2024 00:0713,085242,239,37922,431,00036,451,00029,683,712