[OI to? ] Some common techniques under ubuntu

Write what comes to mind.

Matchmaking program under Ubuntu

python is the easiest.

from os import system
while True:
    system("./make > in")
    system("./std < in > b")
    system("./my < in > s")
    if(system("diff -bB s b")):
        print("MMP")
        exit(0)
    print("pass")

run:
python pai.py

.sh cannot run under Ubuntu

sudo chmod 755 my.sh

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325161847&siteId=291194637