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 22:48Yuriy LyfenkoYuriy LyfenkoScore: 20,516Success
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 22:4812,975135,894,38958,385,69902,248,704
2Oct 10, 2021 22:4812,982123,616,76958,420,50502,240,512
3Oct 10, 2021 22:4812,994129,597,38158,471,16802,248,704
4Oct 10, 2021 22:4820,467288,024,33159,354,00032,747,00029,638,656
5Oct 10, 2021 22:4820,493285,723,85460,454,00031,764,00029,544,448
6Oct 10, 2021 22:4820,499283,143,02862,558,00029,688,00029,622,272
7Oct 10, 2021 22:4820,516286,840,74451,987,00040,334,00029,704,192
8Oct 10, 2021 22:4820,518275,790,67560,528,00031,802,00029,659,136
9Oct 10, 2021 22:4820,531282,373,74955,819,00036,571,00029,544,448
10Oct 10, 2021 22:4820,550277,673,96161,305,00031,172,00029,667,328
11Oct 10, 2021 22:4820,610283,303,55557,227,00035,520,00029,589,504
12Oct 10, 2021 22:4820,651281,915,73862,305,00030,624,00029,708,288