Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118152 | 江梵睿 | 18成绩查找 | C++ | Wrong Answer | 0 MS | 264 KB | 452 | 2025-04-25 18:42:59 |
#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 i,a,b[101],n; cin>>n; for(i=1;i<=n;i++){ cin>>b[i]; } cin>>a; for(i=1;i<=n;i++){ if(b[i]>100){ b[i]=a; } } return 0; }
------Input------
20 70 90 15 79 79 4 50 49 18 125 31 22 19 39 8 37 17 8 62 14 29
------Answer-----
70 90 15 79 79 4 50 49 18 29 31 22 19 39 8 37 17 8 62 14
------Your output-----