Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
321370 gyszzmz25 等差数列的判定 T2 C++ 运行出错 5 MS 708 KB 336 2026-05-10 14:28:31

Tests(4/10):


#include<bits/stdc++.h> using namespace std; long a[103] ; int main(){ int n; cin >> n; for(int i = 1; i <= n; i++) cin >> a[i]; int x = a[2] - a[1]; for(int i = 4; i <= n; i++){ int y = a[i] - a[i-1]; if(x != y){ cout << "No" << endl; return 0; } } cout << "Arithmetic Sequence" << endl; return 0; }


测评信息: