Last active
September 25, 2022 17:00
-
-
Save edhebi/81adda5513d29ce0c3d636ed4a10aff6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clang -xc++ -std=c++17 -O3 - <<EOF | |
#include <cstdio> | |
#include <algorithm> | |
int main(){std::printf("%d\n",std::max({$(sed -e 's/[FL]/0/g;s/[BR]/1/g;/^$/d;s/^/0b/;s/$/,/' $1)}));} | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment