编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#33155 #2055. 异或计算 Wrong Answer 5 2288 ms 8240 K C++ 17 / 908 B C192024214365 2025-03-22 16:11:53
显示原始代码
#include <iostream>
#include <vector>
#include <math.h>
using namespace std;
typedef long long ll;

const long long m = 1e9 + 7;

int main() {
    ll n;
    cin >> n;
    vector<ll> v(n + 1);
    for (ll i = 1; i <= n; i++) {
        cin >> v[i];
    }
    ll q = pow(n, n);
    /*cout << q << endl;
    cout << "--------------" << endl;*/

    ll a = 1;
    for (ll i = 1; i <= n; i++) {
        a *= i;
    }
    /*cout << a << endl;
    cout << "--------------" << endl;*/

    ll l = 0;
    for (ll i = 1; i <= n; i++) {
        l ^= v[i];
    }
    /*cout << l << endl;
    cout << "--------------" << endl;*/

    ll b = (q - a - n) / n;
    /*cout << b << endl;
    cout << "--------------" << endl;
*/

    ll sum = 0;
    for (ll i = 1; i <= n; i++) {
        sum += v[i];
    }
    /*cout << sum << endl;
    cout << "--------------" << endl;*/

    ll res = (b + 1) * sum + a * l;
    ll result = res % m;
    cout << result << endl;

    return 0;
}
子任务 #1
Wrong Answer
得分:4
测试点 #1
Accepted
得分:100
用时:3 ms
内存:328 KiB

输入文件(1.in

3
3 1 3

答案文件(1.out

55

用户输出

55

系统信息

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

输入文件(2.in

4
0 2 4 2

答案文件(2.out

736

用户输出

560

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(3.in

5
1 1 4 1 4

答案文件(3.out

7811

用户输出

6731

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(4.in

10
2 2 5 7 4 7 5 5 10 7

答案文件(4.out

702933526

用户输出

23949702

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(5.in

100
142 704 126 107 261 612 397 732 935 757 12 214 376 484 913 71 661 115 237 102 966 450 859 177 2
<300 bytes omitted>

答案文件(5.out

612706177

用户输出

-60385928

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(6.in

2000
1013 214 1977 1368 525 1607 846 857 393 193 357 11 1746 1181 1765 636 165 748 862 392 719 1965
<8796 bytes omitted>

答案文件(6.out

798352833

用户输出

-484457879

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(7.in

10000
1596 6698 19 8837 3838 6656 4888 3185 5357 675 7901 126 5716 4888 5485 2647 5884 9831 6056 70
<48798 bytes omitted>

答案文件(7.out

313189969

用户输出

105240360

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(8.in

100000
5563211 10125514 15543657 365826 5144501 11784510 13308375 1792996 13197686 2926381 4527049 
<844191 bytes omitted>

答案文件(8.out

642440377

用户输出

364348970

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(9.in

100000
88216 846145 2366236 2963301 3453023 3430610 897447 2363298 1782224 292155 3430757 2324979 4
<772349 bytes omitted>

答案文件(9.out

7570133

用户输出

-414123075

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(10.in

100000
31529 85446 81432 158015 59075 726885 343354 689374 719837 311846 326198 274066 320431 44141
<687329 bytes omitted>

答案文件(10.out

676338835

用户输出

202581235

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(11.in

500000
50705553 29762761 50995170 20906891 62000608 11710238 45174617 24396432 38052492 6960069 235
<4416296 bytes omitted>

答案文件(11.out

232722788

用户输出

493944219

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(12.in

1000000
51185940 71348097 64205250 41536438 29105557 77021709 71566760 92609829 19444392 31481068 2
<8889168 bytes omitted>

答案文件(12.out

524646048

用户输出

301553254

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(13.in

1000000
663940 9324007 63190 8938360 6307810 9637474 1601933 9569900 8963228 3592498 9331802 145200
<7888539 bytes omitted>

答案文件(13.out

563320932

用户输出

-343218119

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(14.in

200309
70702 178166 84685 151415 49752 71185 64314 153400 81290 70990 104021 176060 172041 37094 13
<1291229 bytes omitted>

答案文件(14.out

32275843

用户输出

-875988913

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(15.in

19191
4620 7748 13666 6994 17963 12757 17735 9369 8900 859 4433 15417 3161 17098 17068 10585 2507 2
<103712 bytes omitted>

答案文件(15.out

184251887

用户输出

-814553461

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(16.in

29292
20262 28603 26154 27924 17437 24142 58 1451 14741 2270 16186 16974 24399 11670 7397 19429 952
<164439 bytes omitted>

答案文件(16.out

259757459

用户输出

-186344154

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(17.in

1000000
1338529 1586103 1815105 1076700 916084 1731703 122252 1002100 900277 1153275 1552439 191384
<7444650 bytes omitted>

答案文件(17.out

741496157

用户输出

-176961861

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(18.in

1000000
211 10 370 101 221 169 292 489 319 220 114 452 349 123 211 283 425 197 13 125 35 304 302 81
<3780881 bytes omitted>

答案文件(18.out

451445697

用户输出

-238406057

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(19.in

1000000
51 0 31 74 33 47 71 39 43 82 51 63 54 68 76 39 17 30 15 25 97 72 2 100 9 45 32 27 27 28 16 
<2910393 bytes omitted>

答案文件(19.out

498413997

用户输出

-790897594

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(20.in

1000000
475 415 1 22 627 430 575 249 604 152 476 530 654 430 627 17 466 484 612 335 636 518 221 487
<3835671 bytes omitted>

答案文件(20.out

319100217

用户输出

-878212638

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(21.in

1000000
280 579 0 308 370 481 563 639 465 0 580 264 394 323 644 715 380 38 87 643 192 412 454 509 6
<3858193 bytes omitted>

答案文件(21.out

778826957

用户输出

83858615

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0