Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102874 | 房知谦 | 18成绩查找 | C++ | Accepted | 1 MS | 272 KB | 562 | 2024-12-25 20:00:00 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n; cin>>n; int a[n]; int p; for(int i=0;i<n;i++){ cin>>p; a[i]=p; } int v; cin>>v; for(int y=0;y<n;y++){ if(a[y]>100){ a[y]=v; } } for(int m=0;m<n;m++){ cout<<a[m]<<" "; } return 0; }