编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#21714 #2003. 风华军爷学高数 Wrong Answer 6 5159 ms 4324 K C++ 11 / 769 B 192022211925 2024-12-14 19:44:02
显示原始代码
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++) cin >> a[i];
    sort(a.begin(), a.end());

    if (n % 2 == 0) {
        for (int i = n / 2; i < n; i++) {
            if (a[i] != a[i - 1]) {
                cout << a[i] << endl;
                break;
            }
            if (i == n - 1)
                cout << a[i] + 1 << endl;
        }
    }
    if (n % 2 == 1) {
        for (int i = n / 2 + 1; i < n; i++) {
            if (a[i] != a[i - 1]) {
                cout << a[i] << endl;
                break;
            }
            if (i == n - 1)
                cout << a[i] + 1 << endl;
        }
    }
    return 0;
}
子任务 #1
Wrong Answer
得分:6
测试点 #1
Accepted
得分:100
用时:5 ms
内存:284 KiB

输入文件(test0.in

6
3 4 5 5 6 7

答案文件(test0.out

6

用户输出

6

系统信息

Exited with return code 0
测试点 #2
Wrong Answer
得分:0
用时:4 ms
内存:324 KiB

输入文件(test1.in

8
5 93 66 83 7 16 66 88

答案文件(test1.out

67

用户输出

83

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #3
Wrong Answer
得分:0
用时:4 ms
内存:284 KiB

输入文件(test2.in

8
5 93 66 83 7 16 66 88

答案文件(test2.out

67

用户输出

83

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #4
Wrong Answer
得分:0
用时:4 ms
内存:284 KiB

输入文件(test3.in

8
5 93 66 83 7 16 66 88

答案文件(test3.out

67

用户输出

83

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #5
Wrong Answer
得分:0
用时:5 ms
内存:324 KiB

输入文件(test4.in

8
5 93 66 83 7 16 66 88

答案文件(test4.out

67

用户输出

83

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #6
Wrong Answer
得分:0
用时:458 ms
内存:4320 KiB

输入文件(test5.in

1000000
329342302 42747427 658539253 18535671 132605441 325011053 178129501 2960329 259269297 14046
<9620888 bytes omitted>

答案文件(test5.out

198400106

用户输出

198400161

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #7
Wrong Answer
得分:0
用时:463 ms
内存:4316 KiB

输入文件(test6.in

1000000
329342302 42747427 658539253 18535671 132605441 325011053 178129501 2960329 259269297 14046
<9620888 bytes omitted>

答案文件(test6.out

198400106

用户输出

198400161

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #8
Wrong Answer
得分:0
用时:457 ms
内存:4316 KiB

输入文件(test7.in

1000000
559739545 746354451 241537325 30404881 424294529 324050689 287363758 521764555 39474001 626
<9620218 bytes omitted>

答案文件(test7.out

198678980

用户输出

198679726

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #9
Wrong Answer
得分:0
用时:461 ms
内存:4316 KiB

输入文件(test8.in

1000000
559739545 746354451 241537325 30404881 424294529 324050689 287363758 521764555 39474001 626
<9620218 bytes omitted>

答案文件(test8.out

198678980

用户输出

198679726

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #10
Wrong Answer
得分:0
用时:458 ms
内存:4320 KiB

输入文件(test9.in

1000000
87840631 207151916 571198594 24039361 751478201 323077301 9049846 91509649 77424981 4137413
<9620388 bytes omitted>

答案文件(test9.out

198579516

用户输出

198579641

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #11
Wrong Answer
得分:0
用时:476 ms
内存:4308 KiB

输入文件(test10.in

1000000
87840631 207151916 571198594 24039361 751478201 323077301 9049846 91509649 77424981 4137413
<9620388 bytes omitted>

答案文件(test10.out

198579516

用户输出

198579641

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #12
Wrong Answer
得分:0
用时:490 ms
内存:4312 KiB

输入文件(test11.in

1000000
318283395 361931701 981883837 374982661 261064765 322090889 577056431 38977559 488891581 16
<9620108 bytes omitted>

答案文件(test11.out

198523586

用户输出

198524199

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #13
Wrong Answer
得分:0
用时:478 ms
内存:4316 KiB

输入文件(test12.in

1000000
318283395 361931701 981883837 374982661 261064765 322090889 577056431 38977559 488891581 16
<9620108 bytes omitted>

答案文件(test12.out

198523586

用户输出

198524199

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #14
Wrong Answer
得分:0
用时:466 ms
内存:4312 KiB

输入文件(test13.in

1000000
318283395 361931701 981883837 374982661 261064765 322090889 577056431 38977559 488891581 16
<9620108 bytes omitted>

答案文件(test13.out

198523586

用户输出

198524199

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #15
Wrong Answer
得分:0
用时:464 ms
内存:4308 KiB

输入文件(test14.in

1000000
548786549 56457953 26479421 434158169 383674049 321091453 108620621 224379997 116180361 918
<9620470 bytes omitted>

答案文件(test14.out

198954289

用户输出

198955111

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #16
Wrong Answer
得分:0
用时:466 ms
内存:4324 KiB

输入文件(test15.in

999999
402164071 749957165 80718538 133267925 19636849 322955713 5387471 312962759 757638937 598568
<9619916 bytes omitted>

答案文件(test15.out

198503762

用户输出

198504127

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0