Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
121104 A班卞定熙 幽灵粒子 C++ 编译错误 0 0 MS 0 KB 306 2024-01-21 15:18:54

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int main(){ int n,l,Max=0,Min=0; scanf("%d%d",&n,&l); for(int i=1,temp;i<=n;i++){ scanf("%d",&temp); Max=max(Max,max(l-temp+1,temp)); Min=max(Min,min(l-temp+1,temp)); printf("%d%d",Min,Max); return 0; }


测评信息: