Linux Bash 处理“易语言难题”

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#!/bin/bash
# seesea2517#gmail#com

for i in {1..9}{1..9}{1..9}
do
    if echo $i | grep -E ".*(.).*\1" > /dev/null
    then
        continue
    fi;

    for j in {1..9}{1..9}{1..9}
    do
        if echo $i$j | grep -E ".*(.).*\1" > /dev/null
        then
            continue
        fi;

        if ((i <= j || 2*i != j ))
        then
            continue
        fi

        for k in {1..9}{1..9}{1..9}
        do
            if echo $i$j$K | grep -E ".*(.).*\1" > /dev/null
            then
                continue
            fi;

            if ((j <= k || 3*i != k ))
            then
                continue
            fi

            echo $i $j $k
        done
    done
done