Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67098 彭士宝 22第n项的数 Python3 Wrong Answer 27 MS 3756 KB 212 2024-03-13 21:44:47

Tests(0/5):


Code:

n = int(input()) a,b,c,d = input().split() if b-a == c-b == d-c: start = d res = d+(n-4)*b-a else: res = d*(n-4)*(b//a)


Run Info:

------Input------
6 1 6 11 16
------Answer-----
26
------Your output-----