답안 #530254

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
530254 2022-02-24T21:49:48 Z Iwanttobreakfree Autići (COCI22_autici) C++
50 / 50
42 ms 2044 KB
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
#define int long long
signed main(){
    int n,ans=0;
    cin>>n;
    vector<int> v(n);
    for(int& i:v)cin>>i;
    sort(v.begin(),v.end());
    for(int i=1;i<n;i++)ans+=v[0]+v[i];
    cout<<ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 288 KB Output is correct
2 Correct 14 ms 1144 KB Output is correct
3 Correct 38 ms 1908 KB Output is correct
4 Correct 33 ms 1788 KB Output is correct
5 Correct 37 ms 1932 KB Output is correct
6 Correct 33 ms 1820 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 300 KB Output is correct
5 Correct 2 ms 300 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 2 ms 204 KB Output is correct
9 Correct 1 ms 204 KB Output is correct
10 Correct 1 ms 204 KB Output is correct
11 Correct 1 ms 300 KB Output is correct
12 Correct 1 ms 204 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 288 KB Output is correct
2 Correct 14 ms 1144 KB Output is correct
3 Correct 38 ms 1908 KB Output is correct
4 Correct 33 ms 1788 KB Output is correct
5 Correct 37 ms 1932 KB Output is correct
6 Correct 33 ms 1820 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 0 ms 204 KB Output is correct
9 Correct 1 ms 204 KB Output is correct
10 Correct 1 ms 300 KB Output is correct
11 Correct 2 ms 300 KB Output is correct
12 Correct 1 ms 204 KB Output is correct
13 Correct 1 ms 204 KB Output is correct
14 Correct 2 ms 204 KB Output is correct
15 Correct 1 ms 204 KB Output is correct
16 Correct 1 ms 204 KB Output is correct
17 Correct 1 ms 300 KB Output is correct
18 Correct 1 ms 204 KB Output is correct
19 Correct 0 ms 204 KB Output is correct
20 Correct 0 ms 292 KB Output is correct
21 Correct 14 ms 1100 KB Output is correct
22 Correct 39 ms 2044 KB Output is correct
23 Correct 38 ms 2032 KB Output is correct
24 Correct 42 ms 1892 KB Output is correct
25 Correct 42 ms 2016 KB Output is correct
26 Correct 39 ms 1860 KB Output is correct
27 Correct 42 ms 2012 KB Output is correct
28 Correct 39 ms 1732 KB Output is correct
29 Correct 41 ms 1928 KB Output is correct
30 Correct 39 ms 1980 KB Output is correct