| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146969 | 唐诗阳 | 22不与最大数相同的数字之和 | C++ | Wrong Answer | 0 MS | 268 KB | 509 | 2026-02-01 15:45:01 |
#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,a[101],x=0,s=0; cin>>n; for(int i=1;i<=n;i++){ cout<<a[i]; } for(int i=1;i<=n;i++){ if(max(a[i],x)){ x=a[i]; break; } s+=a[i]; } cout<<s-x; return 0; }
------Input------
71 38 27 41 58 56 58 70 80 27 80 76 56 18 70 56 97 23 18 70 58 63 60 21 71 41 88 10 90 90 8 78 19 10 56 97 19 54 8 77 77 55 58 80 55 92 21 37 22 83 93 56 38 22 11 84 21 15 31 92 10 92 65 69 78 1 69 95 78 10 3 3
------Answer-----
3459
------Your output-----
080100800804694408050816080149440474227508045728080460480804988801316294400601102639804468008047520000802283208010080080444600802224804670434012107270408047520060616624065233-327651136045451184142017023312720001577523101940100052109170-8010080