Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71235 胡海峰老师 11加密规则 Python3 Compile Error 0 MS 0 KB 282 2024-04-21 15:01:36

Tests(0/0):


Code:

six = input() a,b,c,d,e,f = int(six[0]),int(six[1]),int(six[2]),int(six[3]),int(six[4]),int(six[5]), c = (a+b+c)%10 f = sum( [a,b,c,d,e,f])%10 a = chr( a + 65 ) if b % 2 == 0: b = b//2 e = ( e + ord('l') + ord('e') )//10 %10 print(f"{a}{b}{c}{d}{e}{f}")


Run Info:

  File "Main.py", line 16
    print(f"{a}{b}{c}{d}{e}{f}")
                              ^
SyntaxError: invalid syntax