Submission #1162835


Source Code Expand

#include <iostream>
using namespace std;

int main() {
    int n, r, s, t;
    cin >> n >> s;
    r = s;
    for (int i = 1; i < n; i++) {
        cin >> t;
        s += t;
    }
    cout << (r * n * 2 > s ? "Pass" : "Fail") << endl;

    return 0;
}

Submission Info

Submission Time
Task A - もし解けなかったら木の下に埋めて貰っても構わないよ
User merom686
Language C++14 (GCC 5.4.1)
Score 100
Code Size 266 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 42
Set Name Test Cases
All 00_sample_00, 00_sample_01, 00_sample_02, 00_sample_03, 10_rand_00, 10_rand_01, 10_rand_02, 10_rand_03, 10_rand_04, 10_rand_05, 10_rand_06, 10_rand_07, 10_rand_08, 10_rand_09, 11_max_rand_00, 11_max_rand_01, 11_max_rand_02, 11_max_rand_03, 11_max_rand_04, 11_max_rand_05, 11_max_rand_06, 11_max_rand_07, 11_max_rand_08, 11_max_rand_09, 20_border_OK_00, 20_border_OK_01, 20_border_OK_02, 21_max_border_OK_00, 21_max_border_OK_01, 21_max_border_OK_02, 30_border_NG_00, 30_border_NG_01, 30_border_NG_02, 31_max_border_NG_00, 31_max_border_NG_01, 31_max_border_NG_02, 40_special_00, 40_special_01, 40_special_02, 40_special_03, 40_special_04, 40_special_05
Case Name Status Exec Time Memory
00_sample_00 AC 1 ms 256 KB
00_sample_01 AC 1 ms 256 KB
00_sample_02 AC 1 ms 256 KB
00_sample_03 AC 1 ms 256 KB
10_rand_00 AC 1 ms 256 KB
10_rand_01 AC 1 ms 256 KB
10_rand_02 AC 1 ms 256 KB
10_rand_03 AC 1 ms 256 KB
10_rand_04 AC 1 ms 256 KB
10_rand_05 AC 1 ms 256 KB
10_rand_06 AC 1 ms 256 KB
10_rand_07 AC 1 ms 256 KB
10_rand_08 AC 1 ms 256 KB
10_rand_09 AC 1 ms 256 KB
11_max_rand_00 AC 1 ms 256 KB
11_max_rand_01 AC 1 ms 256 KB
11_max_rand_02 AC 1 ms 256 KB
11_max_rand_03 AC 1 ms 256 KB
11_max_rand_04 AC 1 ms 256 KB
11_max_rand_05 AC 1 ms 256 KB
11_max_rand_06 AC 1 ms 256 KB
11_max_rand_07 AC 1 ms 256 KB
11_max_rand_08 AC 1 ms 256 KB
11_max_rand_09 AC 1 ms 256 KB
20_border_OK_00 AC 1 ms 256 KB
20_border_OK_01 AC 1 ms 256 KB
20_border_OK_02 AC 1 ms 256 KB
21_max_border_OK_00 AC 1 ms 256 KB
21_max_border_OK_01 AC 1 ms 256 KB
21_max_border_OK_02 AC 1 ms 256 KB
30_border_NG_00 AC 1 ms 256 KB
30_border_NG_01 AC 1 ms 256 KB
30_border_NG_02 AC 1 ms 256 KB
31_max_border_NG_00 AC 1 ms 256 KB
31_max_border_NG_01 AC 1 ms 256 KB
31_max_border_NG_02 AC 1 ms 256 KB
40_special_00 AC 1 ms 256 KB
40_special_01 AC 1 ms 256 KB
40_special_02 AC 1 ms 256 KB
40_special_03 AC 1 ms 256 KB
40_special_04 AC 1 ms 256 KB
40_special_05 AC 1 ms 256 KB