| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 134250 | 曾煦翔 | 紧急集合 | C++ | Wrong Answer | 0 | 2 MS | 304 KB | 426 | 2024-03-02 15:16:49 |
#include <bits/stdc++.h> using namespace std; const int N = 1e5; //struct node //{ // int p , q; //}a[N]; //bool cmp(node x , node y) //{ // if(x.p != y.p) // return x.p < y.p; // return x.q < y.q; //} int a[N]; int main() { int n; cin >> n; for(int i =1 ;i <= n;i++) cin >> a[i]; sort(a + 1 , a + n + 1); int sum = a[1]; for(int i = 2;i <= n;i++) sum += a[i]; cout << sum; return 0; }