import random
import math
import time
print('口算小达人v1.0.2(tips:除法向下取整,难度逐渐上升,限时10秒),1:简单,2:中等,3:困难')
print("v1.0.2 增加了表情包,增加答题时间从10秒变为15秒")
m = int(input())
cnt = 0
su = 0
while 1:
    cnt += 10
    a = random.randint(1, 4)
    b = random.randint(1, (m * 100 + cnt))
    c = random.randint(1, (m * 100 + cnt))
    if (su >= 10):
        while 1:
            print('你太菜了,错了十题🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤡🤔🤔🤔🤔🤔😅😅😅😅🙄🙄🙄🙄🙄😭😭🥵🥵🥵🥵🥵')
    elif (a == 1):
        print(b, '+', c, '=', end = ' ')
        e = time.time()
        d = int(input())
        u = time.time()
        if (u - e > 15):
            print('你超时了,菜就多练🥶🥶🥶😰😱😩😩😩🤯🤯🤯🙄🙄🙄')
            su += 1
        elif (d == b + c):
            print('答对了😁😁😁😁😁😁😙😙😙😍😍😍🥰🥰')
        else:
            print('菜就多练😛😛😛🙃🙃🙃🤓🤓🤓🤓🤯🤯🤯🙄🙄🙄')
            su += 1
    elif (a == 2):
        print(b, '-', c, '=', end = ' ')
        e = time.time()
        d = int(input())
        u = time.time()
        if (u - e > 15):
            print('你超时了,菜就多练😆😆😆😆🤨🤨🤨🤨🤨😌😜😜😕😕😕😖😖')
            su += 1
        elif (d == b - c):
            print('答对了😁😁😁😊😊😋😋😋😋😍😍😍')
        else:
            print('菜就多练😛😛😛🙃🙃🙃🤓🤓🤓🤓🤯🤯🤯🙄🙄🙄')
            su += 1
    elif (a == 3):
        print(b, '*', c, '=', end = ' ')
        e = time.time()
        d = int(input())
        u = time.time()
        if (u - e > 15):
            print('你超时了,菜就多练😗😗😗👿👿👿😈😈😈😈😈😈😈')
            su += 1
        elif (d == b * c):
            print('答对了😎😎😎😎😎😎😎😊😋🤗🤗🤩🤩🤩🤩🤩')
        else:
            print('菜就多练🤨🤨🤨🤢🤢🤢🙊🤮🤮🤮🤮🤮🤬🤬🤬🤬🤡')
            su += 1
    else:
        print(b, '/', c, '=', end = ' ')
        e = time.time()
        d = int(input())
        u = time.time()
        if (u - e > 15):
            print('你超时了,菜就多练🤣🤣🤣🤣😂😂😂😨😨😨😡😡😡😡🥺')
            su += 1
        elif (d == math.floor(b / c)):
            print('答对了😘😘😘😘😃🤑🤑🤑🤑🤑🤑🤑🤑')
        else:
            print('菜就多练😥😝😝😝😝💩💩💩💩💩💩💩💩💩💩💩💩')
            su += 1

0 条评论

目前还没有评论...

信息

ID
1083
时间
1000ms
内存
256MiB
难度
7
标签
递交数
30
已通过
8
上传者