Unique strings v2 Sergey Svistunov

Same problem as Unique strings, but with 3 CPUs available and scoring based on wall time instead of CPU time.

Count the exact number of unique tokens as fast as possible.

Input

One token per line on STDIN:

JWXcKKaWzvFL5
Rof
3ztCpA
5wHcGN
*UiEMthaTS*g

Output

Print the exact count of unique tokens to STDOUT.

Constraints

  • Character set: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@#%*
  • Maximum token length: 16
  • Approximately 1,000,000 unique tokens
Date AuthorLanguageStatus Score
Dec 22, 2025 11:07Rajarshi BasuRajarshi BasuCPPg++13.3.0Error+99.65 RP
Dec 20, 2025 10:16Rajarshi BasuRajarshi BasuCPPclang++18.1.3Success6,689+1'476.60 RP
Dec 16, 2025 11:49AndreiAndreiCSHARP9.0.11Success162,023+81.24 RP
Dec 6, 2025 18:00Rajarshi BasuRajarshi BasuCPPg++13.3.0Success543,722+18.39 RP
Nov 21, 2025 09:15izotoffizotoffGOgo1.11Success29,750
Nov 21, 2025 09:12izotoffizotoffGOgo1.11Success32,092
Nov 21, 2025 09:12izotoffizotoffGOgo1.11Error
Nov 21, 2025 09:11izotoffizotoffGOgo1.11Error
Nov 21, 2025 09:11izotoffizotoffGOgo1.11Error
Nov 21, 2025 09:06izotoffizotoffGOgo1.11Success35,035
Nov 21, 2025 09:05izotoffizotoffGOgo1.11Success42,242
Nov 21, 2025 09:05izotoffizotoffGOgo1.11Success32,516
Nov 21, 2025 09:04izotoffizotoffGOgo1.11Error
Nov 21, 2025 09:04izotoffizotoffGOgo1.11Success31,553
Nov 21, 2025 09:03izotoffizotoffGOgo1.11Error
Nov 21, 2025 09:03izotoffizotoffGOgo1.25.4Error
Nov 21, 2025 03:15izotoffizotoffCPPg++13.3.0Success28,761+3.04 RP
Nov 21, 2025 03:13izotoffizotoffCPPg++13.3.0Success29,015+18.96 RP
Nov 21, 2025 03:06izotoffizotoffGOgo1.25.4Success37,172
Nov 21, 2025 03:05izotoffizotoffGOgo1.11Success33,404
Nov 21, 2025 03:04izotoffizotoffGOgo1.11Success30,970
Nov 21, 2025 01:34izotoffizotoffGOgo1.11Success30,704+11.50 RP
Nov 21, 2025 01:33izotoffizotoffGOgo1.11Success37,806
Nov 21, 2025 01:32izotoffizotoffGOgo1.11Success39,748
Nov 21, 2025 01:24izotoffizotoffGOgo1.11.1Success33,741
Nov 21, 2025 01:21izotoffizotoffGOgo1.25.4Success31,828+215.33 RP
Nov 15, 2025 23:00Aniruddha DebAniruddha DebCPPclang++18.1.3Success15,378+158.35 RP
Nov 15, 2025 22:26Aniruddha DebAniruddha DebCPPclang++18.1.3Error
Nov 15, 2025 22:25Aniruddha DebAniruddha DebCPPg++13.3.0Error
Nov 15, 2025 00:15izotoffizotoffGOgo1.25.4Success101,159+98.85 RP
Aug 19, 2025 03:19KeefeKeefeCPPg++13.3.0Success10,289+12.22 RP
Aug 19, 2025 03:17etherealetherealCPPg++13.3.0Success10,360+674.81 RP
Jul 30, 2025 18:13Leonardo Pedrozo AmaralLeonardo Pedrozo AmaralCPPg++13.3.0Success542,529+18.43 RP
Jul 21, 2025 17:13Aniruddha DebAniruddha DebCPPg++13.3.0Success20,328+94.02 RP
Jun 21, 2025 20:51Aniruddha DebAniruddha DebCPPg++13.3.0Error
May 25, 2025 02:06etherealetherealGOgo1.24.3Error
May 25, 2025 02:04etherealetherealGOgo1.24.3Success34,430+290.44 RP
May 25, 2025 02:02etherealetherealGOgo1.24.3Error
May 25, 2025 02:00etherealetherealGOgo1.24.3Error
May 25, 2025 00:58Emanuele BolognesiEmanuele BolognesiRUSTrust-1.87.0Success50,109+4.64 RP
May 25, 2025 00:57Emanuele BolognesiEmanuele BolognesiCPPg++13.3.0Success51,301+105.50 RP
May 11, 2025 07:10KeefeKeefeCPPg++13.3.0Error
May 11, 2025 07:09KeefeKeefeCPPg++13.3.0Success10,420+142.57 RP
May 11, 2025 07:08KeefeKeefeCPPg++13.3.0Success16,284
May 10, 2025 16:02KeefeKeefeCPPg++13.3.0Success41,573
May 10, 2025 15:31KeefeKeefeCPPg++13.3.0Success12,238+0.07 RP
May 10, 2025 15:19KeefeKeefeCPPg++13.3.0Success12,239+406.33 RP
May 10, 2025 15:13KeefeKeefeCPPg++13.3.0Success24,347+136.34 RP
May 10, 2025 15:11KeefeKeefeCPPg++13.3.0Success36,632
May 10, 2025 15:08KeefeKeefeCPPg++13.3.0Error
May 10, 2025 15:02KeefeKeefeCPPg++13.3.0Success36,932
May 10, 2025 15:01KeefeKeefeCPPg++13.3.0Success36,874
May 10, 2025 14:51KeefeKeefeCPPg++13.3.0Error
May 10, 2025 13:59Emanuele BolognesiEmanuele BolognesiRUSTrust-1.86.0Success111,818+89.43 RP
May 2, 2025 05:20KeefeKeefeCPPg++13.3.0Success37,395
May 2, 2025 05:13KeefeKeefeCPPg++13.3.0Success36,445+0.86 RP
May 2, 2025 05:11KeefeKeefeCPPg++13.3.0Error
May 2, 2025 05:10KeefeKeefeCPPg++13.3.0Error
Apr 24, 2025 10:22KeefeKeefeCPPg++13.3.0Error
Apr 24, 2025 10:19KeefeKeefeCPPg++13.3.0Error
Apr 24, 2025 10:16KeefeKeefeCPPg++13.3.0Error
Apr 24, 2025 10:14KeefeKeefeCPPg++13.3.0Success44,524
Apr 24, 2025 10:14KeefeKeefeCPPg++13.3.0Success37,486
Apr 24, 2025 10:13KeefeKeefeCPPg++13.3.0Success42,731
Apr 24, 2025 10:10KeefeKeefeCPPg++13.3.0Success36,560+60.02 RP
Apr 24, 2025 10:05KeefeKeefeCPPg++13.3.0Error
Apr 9, 2025 17:38NoSIMD_C#NoSIMD_C#CSHARP9.0.4Success239,163
Apr 8, 2025 07:19NoSIMD_C#NoSIMD_C#CPPclang++18.1.3Success518,105
Mar 23, 2025 17:37Aniruddha DebAniruddha DebCPPg++13.2.0Success25,131+397.91 RP
Mar 7, 2025 22:59KeefeKeefeCPPg++13.2.0Success48,555
Mar 7, 2025 22:56KeefeKeefeCPPg++13.2.0Success581,871
Feb 28, 2025 05:26NoSIMD_C#NoSIMD_C#CSHARP10.0.0-preview.1Success237,153
Feb 17, 2025 09:31Ian MckibbenIan MckibbenCPPg++13.2.0Success22,274
Feb 17, 2025 09:29Ian MckibbenIan MckibbenCPPclang++18.1.3Success22,264+126.50 RP
Feb 3, 2025 05:30NoSIMD_C#NoSIMD_C#CPPclang++18.1.3Success530,278
Feb 2, 2025 18:50HighloadGPT-o3-mini-highHighloadGPT-o3-mini-highCPPclang++18.1.3Success37,562+22.81 RP
Feb 2, 2025 18:47HighloadGPT-o3-mini-highHighloadGPT-o3-mini-highCPPg++13.2.0Success41,082+243.42 RP
Feb 1, 2025 11:20KeefeKeefeCPPclang++18.1.3Error
Feb 1, 2025 11:15KeefeKeefeCPPclang++18.1.3Error
Feb 1, 2025 11:12KeefeKeefeCPPclang++18.1.3Success46,838+213.50 RP
Jan 23, 2025 08:33NoSIMD_C#NoSIMD_C#CSHARP9.0.1Success239,242
Jan 21, 2025 07:38NoSIMD_C#NoSIMD_C#CSHARP9.0.1Success240,554
Jan 20, 2025 22:21Oleg KovalovOleg KovalovGOgo1.23.5Success112,367
Jan 19, 2025 07:08AnSaAnSaCPPg++13.2.0Success524,867+0.15 RP
Jan 19, 2025 00:53Ian MckibbenIan MckibbenCPPclang++18.1.3Success30,993+6.84 RP
Jan 16, 2025 20:31Ian MckibbenIan MckibbenCPPclang++18.1.3Error
Jan 16, 2025 20:30Ian MckibbenIan MckibbenCPPg++13.2.0Error
Jan 16, 2025 06:06Ian MckibbenIan MckibbenCPPg++13.2.0Success31,664+296.55 RP
Jan 16, 2025 06:05Ian MckibbenIan MckibbenCPPclang++18.1.3Success519,034+19.27 RP
Dec 29, 2024 17:37Yuriy LyfenkoYuriy LyfenkoCPPclang++18.1.3Success6,774+7.37 RP
Dec 29, 2024 17:35Yuriy LyfenkoYuriy LyfenkoCPPclang++18.1.3Error
Dec 29, 2024 17:33Yuriy LyfenkoYuriy LyfenkoCPPclang++18.1.3Success6,835
Dec 22, 2024 22:14HighloadGPTO1HighloadGPTO1CPPg++13.2.0Success108,082+8.81 RP
Dec 22, 2024 22:13HighloadGPTO1HighloadGPTO1CPPclang++18.1.3Success119,454+83.71 RP
Dec 12, 2024 18:25Yuriy LyfenkoYuriy LyfenkoCPPclang++18.1.3Success6,859
Dec 9, 2024 16:26Joad NacerJoad NacerCPPg++13.2.0Error
Dec 9, 2024 16:26Joad NacerJoad NacerCPPg++13.2.0Error
Dec 9, 2024 16:24Joad NacerJoad NacerCPPg++13.2.0Error
Dec 9, 2024 16:20Joad NacerJoad NacerCPPg++13.2.0Error
Dec 9, 2024 16:20Joad NacerJoad NacerCPPg++13.2.0Success4,894