比赛场次 | 405 |
---|---|
比赛名称 | NOIP模拟赛1 |
比赛状态 | 已结束比赛成绩 |
开始时间 | 2018-02-08 18:40:00 |
结束时间 | 2018-02-08 21:40:00 |
开放分组 | 全部用户 |
注释介绍 |
题目名称 | 异或 |
---|---|
输入输出 | xorxor.in/out |
时间限制 | 1000 ms (1 s) |
内存限制 | 256 MiB |
测试点数 | 10 简单对比 |
用户 | 结果 | 时间 | 内存 | 得分 |
---|---|---|---|---|
|
AAAAAAAAAA | 2.317 s | 31.07 MiB | 100 |
|
AAAWWWWWWW | 0.323 s | 0.56 MiB | 30 |
|
AAAEEEEEEE | 0.510 s | 2.89 MiB | 30 |
|
AAAEEEEEEE | 0.638 s | 11.75 MiB | 30 |
|
AAAEEEEEEE | 0.746 s | 31.07 MiB | 30 |
|
AAAEEEEEEE | 0.859 s | 57.41 MiB | 30 |
|
AAAEEEEEEE | 1.428 s | 114.60 MiB | 30 |
|
AAAEEEEEEE | 1.429 s | 160.43 MiB | 30 |
|
AAAEEEEEEE | 1.754 s | 0.42 MiB | 30 |
|
AAAEEEEEEE | 1.996 s | 152.86 MiB | 30 |
|
AAAEEEEEEE | 6.233 s | 0.28 MiB | 30 |
|
AAAEEEEEEE | 6.322 s | 0.35 MiB | 30 |
|
AAAEEEEEEE | 6.417 s | 0.41 MiB | 30 |
|
AAAEEEEEEE | 6.436 s | 0.48 MiB | 30 |
|
AAAEEEEEEE | 6.508 s | 3.72 MiB | 30 |
|
AAAEEEEEEE | 6.666 s | 0.28 MiB | 30 |
|
AAAEEEEEEE | 6.781 s | 30.77 MiB | 30 |
|
AAATTTTTTT | 7.008 s | 13.77 MiB | 30 |
|
AAATTTTTTT | 7.009 s | 0.63 MiB | 30 |
|
AAATTTTTTT | 7.010 s | 1.69 MiB | 30 |
|
AAATTTTTTT | 7.011 s | 0.42 MiB | 30 |
|
AAATTTTTTT | 7.011 s | 0.63 MiB | 30 |
|
AAATTTTTTT | 7.012 s | 3.30 MiB | 30 |
|
AAATTTTTTT | 7.013 s | 2.92 MiB | 30 |
|
AATTTTTTTT | 8.003 s | 0.49 MiB | 20 |
|
WWAEEEEEEE | 4.907 s | 0.49 MiB | 10 |
|
AWWTTTTTTT | 7.001 s | 6.54 MiB | 10 |
|
MMMMMMMMMM | 0.000 s | 0.00 MiB | 0 |
|
C | 0.000 s | 0.00 MiB | 0 |
|
RRRRRRRRRR | 0.001 s | 0.22 MiB | 0 |
|
RRRRRRRRRR | 0.015 s | 0.27 MiB | 0 |
|
WEEEWEWWWW | 0.276 s | 0.16 MiB | 0 |
|
WWEEEEEEEE | 0.729 s | 3.30 MiB | 0 |
|
WWEEEEEEEE | 0.949 s | 0.97 MiB | 0 |
|
WWWTTTTTTT | 7.001 s | 0.38 MiB | 0 |
|
WWWTTTTTTT | 7.100 s | 0.86 MiB | 0 |
小b学会了异或操作,非常开心。现在他有n个整数,对每两个整数都求一下异或操作,小b就得到了n*(n-1)/2个数字。现在小b想知道这n*(n-1)/2个数字里面,第k小的是谁?
第一行两个整数n,k
接下来一行n个整数
一个整数,为第k小的数字
4 5 1 1 3 4
5
解释:
1 xor 1 = 0;
1 xor 3 = 2;
1 xor 4 = 5;
1 xor 3 = 2;
1 xor 4 = 5;
3 xor 4 = 7;
第5小的数为5
数据范围
每个数字均为正整数且不超过1,000,000
30%的数据: 2 <= n <= 500 1 <= k <= min(100,000, n*(n-1)/2)
100%的数据:2 <= n <= 100,000 1 <= k <= min(100,000, n*(n-1)/2)
经典题目