Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
text = input().upper() unique_symbols = "" current_symbol = "" repetitions = "" for i in range(len(text)): if not text[i].isdigit(): current_symbol += text[i] else: for idx in range(i, len(text)): if not text[idx].isdigit(): break repetitions += text[idx] repetitions = int(repetitions) unique_symbols += repetitions * current_symbol current_symbol = "" repetitions = "" print(f"Unique symbols used: {len(set(unique_symbols))}") print(unique_symbols)
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)