Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75605 sh25_zhuwy 最大的偶数 C++ 通过 0 MS 244 KB 271 2025-12-08 12:21:14

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int n,max=-1000000; cin>>n; int a[n]; for(int i=0;i<n;i++) { cin>>a[i]; if(a[i]>max&&a[i]%2==0) { max=a[i]; } } cout<<max; return 0; }


测评信息: