답안 #1084058

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1084058 2024-09-05T02:54:38 Z overwatch9 Akcija (COCI15_akcija) C++17
32 / 80
21 ms 844 KB
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
    int n;
    cin >> n;
    vector <int> nums(n);
    for (int i = 0; i < n; i++)
        cin >> nums[i];
    sort(nums.begin(), nums.end());
    ll ans = 0;
    for (int i = 0; i < n; i++) {
        if (i % 3 == 0)
            continue;
        ans += nums[i];
    }
    cout << ans << '\n';
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Incorrect 1 ms 344 KB Output isn't correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 17 ms 844 KB Output is correct
7 Correct 14 ms 604 KB Output is correct
8 Incorrect 13 ms 604 KB Output isn't correct
9 Incorrect 21 ms 836 KB Output isn't correct
10 Incorrect 21 ms 836 KB Output isn't correct