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 9, 2021 13:06Ilya AniskovetsIlya AniskovetsScore: 14,253Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 9, 2021 13:066,94499,015,24631,247,51602,265,088
2Nov 9, 2021 13:066,982101,118,98731,421,07102,265,088
3Nov 9, 2021 13:067,03088,520,99531,636,64602,256,896
4Nov 9, 2021 13:0614,204254,655,53130,927,00032,989,00029,614,080
5Nov 9, 2021 13:0614,225251,315,89129,096,00034,915,00029,614,080
6Nov 9, 2021 13:0614,234252,099,13229,116,00034,939,00029,548,544
7Nov 9, 2021 13:0614,253251,919,03631,035,00033,104,00029,618,176
8Nov 9, 2021 13:0614,295252,260,37727,434,00036,894,00029,487,104
9Nov 9, 2021 13:0614,382256,024,17031,348,00033,370,00029,642,752
10Nov 9, 2021 13:0614,452258,586,45631,467,00033,565,00029,745,152
11Nov 9, 2021 13:0614,452254,176,17734,228,00030,805,00029,749,248
12Nov 9, 2021 13:0614,598260,067,59130,855,00034,836,00029,536,256